CentOS7—Apache—多个虚拟站点—semodule

[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]#


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值