Chinaunix首页 | 论坛 | 博客
  • 博客访问: 6684903
  • 博文数量: 1159
  • 博客积分: 12444
  • 博客等级: 上将
  • 技术积分: 12570
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-13 21:34
文章分类

全部博文(1159)

文章存档

2016年(126)

2015年(350)

2014年(56)

2013年(91)

2012年(182)

2011年(193)

2010年(138)

2009年(23)

分类: LINUX

2015-11-05 07:59:39

[root@localhost processmaker]# gedit /etc/httpd/conf.d/root.conf            //内容如下

点击(此处)折叠或打开

  1. # NameVirtualHost *:8000
  2. Listen 8000
  3. <VirtualHost *:8000>
  4.     ServerName 127.0.0.1

  5.     DocumentRoot /var/www/html
  6.     DirectoryIndex index.html index.php

  7.     <Directory /var/www/html>
  8.         Options Indexes FollowSymLinks MultiViews
  9.         AllowOverride None
  10.         Order allow,deny
  11.         allow from all

  12.         ExpiresActive On

  13.         <IfModule mod_rewrite.c>
  14.             RewriteEngine On
  15.             RewriteCond %{REQUEST_FILENAME} !-f
  16.             RewriteRule ^.*/(.*)$ app.php [QSA,L,NC]
  17.         </IfModule>
  18.     </Directory>
  19. </VirtualHost>

[root@localhost processmaker]# gedit /etc/httpd/conf.d/pmos.conf            //内容如下

点击(此处)折叠或打开

  1. <VirtualHost *:80>
  2.     ServerName 127.0.0.1

  3.     DocumentRoot /var/www/html/processmaker/workflow/public_html
  4.     DirectoryIndex index.html index.php

  5.     <Directory /var/www/html/processmaker/workflow/public_html>
  6.         Options Indexes FollowSymLinks MultiViews
  7.         AllowOverride None
  8.         Order allow,deny
  9.         allow from all

  10.         ExpiresActive On

  11.         <IfModule mod_rewrite.c>
  12.             RewriteEngine On
  13.             RewriteCond %{REQUEST_FILENAME} !-f
  14.             RewriteRule ^.*/(.*)$ app.php [QSA,L,NC]
  15.         </IfModule>
  16.     </Directory>
  17. </VirtualHost>

[root@localhost processmaker]# systemctl restart httpd

Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.

[root@localhost processmaker]# journalctl -xn

11月 04 23:29:55 localhost.localdomain setroubleshoot[17685]: load_plugins() plugins.xen_image previously imported
11月 04 23:29:55 localhost.localdomain python[17685]: SELinux is preventing /usr/sbin/httpd from name_bind access on the tcp_socket por
              
              *****  Plugin catchall (100. confidence) suggests   **************************
              
              If you believe that httpd should be allowed name_bind access on the port 8000 tc
              Then you should report this as a bug.
              You can generate a local policy module to allow this access.
              Do
              allow this access for now by executing:
              # grep httpd /var/log/audit/audit.log | audit2allow -M mypol
              # semodule -i mypol.pp

[root@localhost processmaker]# semodule -i mypol.pp
[root@localhost processmaker]# systemctl restart httpd
[root@localhost processmaker]#

阅读(1143) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~