[root@localhost processmaker]#
gedit /etc/httpd/conf.d/root.conf //内容如下
-
# NameVirtualHost *:8000
-
Listen 8000
-
<VirtualHost *:8000>
-
ServerName 127.0.0.1
-
-
DocumentRoot /var/www/html
-
DirectoryIndex index.html index.php
-
-
<Directory /var/www/html>
-
Options Indexes FollowSymLinks MultiViews
-
AllowOverride None
-
Order allow,deny
-
allow from all
-
-
ExpiresActive On
-
-
<IfModule mod_rewrite.c>
-
RewriteEngine On
-
RewriteCond %{REQUEST_FILENAME} !-f
-
RewriteRule ^.*/(.*)$ app.php [QSA,L,NC]
-
</IfModule>
-
</Directory>
-
</VirtualHost>
[root@localhost processmaker]#
gedit /etc/httpd/conf.d/pmos.conf //内容如下
-
<VirtualHost *:80>
-
ServerName 127.0.0.1
-
-
DocumentRoot /var/www/html/processmaker/workflow/public_html
-
DirectoryIndex index.html index.php
-
-
<Directory /var/www/html/processmaker/workflow/public_html>
-
Options Indexes FollowSymLinks MultiViews
-
AllowOverride None
-
Order allow,deny
-
allow from all
-
-
ExpiresActive On
-
-
<IfModule mod_rewrite.c>
-
RewriteEngine On
-
RewriteCond %{REQUEST_FILENAME} !-f
-
RewriteRule ^.*/(.*)$ app.php [QSA,L,NC]
-
</IfModule>
-
</Directory>
-
</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) |