Добрый день!
Развернули на основе BitrixENV version 7.2.2 песочницу под проект, CentOs 7.4
Настроили виртулаьные хосты, как настраивали не раз до этого. Конфиг оставили максимально дефолтный.
Но виртуальные хосты ни в какую не работают! При обращении на любой хост, открывается первый виртуаьный хост.
Конфиги уже по несколько раз перепроверили, не могу понять где проблема. В новой версии ENV там ничего, случаем не менялось в поддержке виртуальных хостов?
/etc/httpd/bx/conf/default.conf
[CODE][/CODE]
Развернули на основе BitrixENV version 7.2.2 песочницу под проект, CentOs 7.4
Настроили виртулаьные хосты, как настраивали не раз до этого. Конфиг оставили максимально дефолтный.
Но виртуальные хосты ни в какую не работают! При обращении на любой хост, открывается первый виртуаьный хост.
Конфиги уже по несколько раз перепроверили, не могу понять где проблема. В новой версии ENV там ничего, случаем не менялось в поддержке виртуальных хостов?
Код |
---|
# /sbin/httpd -S VirtualHost configuration: 127.0.0.1:8888 is a NameVirtualHost default server sandbox.lan (/etc/httpd/bx/conf/default.conf:3) port 8888 namevhost sandbox.lan (/etc/httpd/bx/conf/default.conf:3) port 8888 namevhost sandbox1.lan (/etc/httpd/bx/custom/z_bx_custom.conf:1) port 8888 namevhost sandbox2.lan (/etc/httpd/bx/custom/z_bx_custom.conf:88) ServerRoot: "/etc/httpd" Main DocumentRoot: "/home/bitrix/www" Main ErrorLog: "/etc/httpd/logs/error_log" Mutex rewrite-map: using_defaults Mutex authn-socache: using_defaults Mutex default: dir="/run/httpd/" mechanism=default Mutex mpm-accept: using_defaults PidFile: "/etc/httpd/run/httpd.pid" Define: _RH_HAS_HTTPPROTOCOLOPTIONS Define: DUMP_VHOSTS Define: DUMP_RUN_CFG User: name="bitrix" id=600 Group: name="bitrix" id=600 |
/etc/httpd/bx/conf/default.conf
Код |
---|
Listen 127.0.0.1:8888 <VirtualHost 127.0.0.1:8888> DocumentRoot /home/bitrix/www <Directory /> Options FollowSymLinks AllowOverride None </Directory> <DirectoryMatch .*\.svn/.*> Require all denied </DirectoryMatch> <DirectoryMatch .*\.git/.*> Require all denied </DirectoryMatch> <DirectoryMatch .*\.hg/.*> Require all denied </DirectoryMatch> <Directory /home/bitrix/www/> Options Indexes FollowSymLinks MultiViews AllowOverride All DirectoryIndex index.php index.html index.htm php_admin_value session.save_path /tmp/php_sessions/www php_admin_value upload_tmp_dir /tmp/php_upload/www Require all granted </Directory> <Directory /home/bitrix/www/bitrix/cache> AllowOverride none Require all denied </Directory> <Directory /home/bitrix/www/bitrix/managed_cache> AllowOverride none Require all denied </Directory> <Directory /home/bitrix/www/bitrix/local_cache> AllowOverride none Require all denied </Directory> <Directory /home/bitrix/www/bitrix/stack_cache> AllowOverride none Require all denied </Directory> <Directory /home/bitrix/www/upload> AllowOverride none AddType text/plain php,php3,php4,php5,php6,phtml,pl,asp,aspx,cgi,dll,exe,ico,shtm,shtml,fcg,fcgi,fpl,asmx,pht php_value engine off </Directory> <Directory /home/bitrix/www/upload/support/not_image> AllowOverride none Require all denied </Directory> <Directory /home/bitrix/www/bitrix/images> AllowOverride none AddType text/plain php,php3,php4,php5,php6,phtml,pl,asp,aspx,cgi,dll,exe,ico,shtm,shtml,fcg,fcgi,fpl,asmx,pht php_value engine off </Directory> <Directory /home/bitrix/www/bitrix/tmp> AllowOverride none AddType text/plain php,php3,php4,php5,php6,phtml,pl,asp,aspx,cgi,dll,exe,ico,shtm,shtml,fcg,fcgi,fpl,asmx,pht php_value engine off </Directory> ErrorLog logs/error_log # Possible values include: debug, info, notice, warn, error, crit, alert, emerg. LogLevel warn CustomLog logs/access_log combined <IfModule mod_rewrite.c> #Nginx should have "proxy_set_header HTTPS YES;" in location RewriteEngine On RewriteCond %{HTTP:HTTPS} =YES RewriteRule .* - [E=HTTPS:on,L] </IfModule> </VirtualHost> |
/etc/httpd/bx/custom/z_bx_custom.conf
Код |
---|
<VirtualHost 127.0.0.1:8888> ServerName sandbox1.lan DocumentRoot /home/sandbox1/www <Directory /> Options FollowSymLinks AllowOverride None </Directory> <DirectoryMatch .*\.svn/.*> Require all denied </DirectoryMatch> <DirectoryMatch .*\.git/.*> Require all denied </DirectoryMatch> <DirectoryMatch .*\.hg/.*> Require all denied </DirectoryMatch> <Directory /home/sandbox1/www/> Options Indexes FollowSymLinks MultiViews AllowOverride All DirectoryIndex index.php index.html index.htm php_admin_value session.save_path /tmp/php_sessions/www php_admin_value upload_tmp_dir /tmp/php_upload/www Require all granted </Directory> <Directory /home/sandbox1/www/bitrix/cache> AllowOverride none Require all denied </Directory> <Directory /home/sandbox1/www/bitrix/managed_cache> AllowOverride none Require all denied </Directory> <Directory /home/sandbox1/www/bitrix/local_cache> AllowOverride none Require all denied </Directory> <Directory /home/sandbox1/www/bitrix/stack_cache> AllowOverride none Require all denied </Directory> <Directory /home/sandbox1/www/upload> AllowOverride none AddType text/plain php,php3,php4,php5,php6,phtml,pl,asp,aspx,cgi,dll,exe,ico,shtm,shtml,fcg,fcgi,fpl,asmx,pht php_value engine off </Directory> <Directory /home/sandbox1/www/upload/support/not_image> AllowOverride none Require all denied </Directory> <Directory /home/sandbox1/www/bitrix/images> AllowOverride none AddType text/plain php,php3,php4,php5,php6,phtml,pl,asp,aspx,cgi,dll,exe,ico,shtm,shtml,fcg,fcgi,fpl,asmx,pht php_value engine off </Directory> <Directory /home/sandbox1/www/bitrix/tmp> AllowOverride none AddType text/plain php,php3,php4,php5,php6,phtml,pl,asp,aspx,cgi,dll,exe,ico,shtm,shtml,fcg,fcgi,fpl,asmx,pht php_value engine off </Directory> ErrorLog logs/error_log # Possible values include: debug, info, notice, warn, error, crit, alert, emerg. LogLevel warn CustomLog logs/access_log combined <IfModule mod_rewrite.c> #Nginx should have "proxy_set_header HTTPS YES;" in location RewriteEngine On RewriteCond %{HTTP:HTTPS} =YES RewriteRule .* - [E=HTTPS:on,L] </IfModule> </VirtualHost> <VirtualHost 127.0.0.1:8888> ServerName sandbox2.lan DocumentRoot /home/sandbox2/www <Directory /> Options FollowSymLinks AllowOverride None </Directory> <DirectoryMatch .*\.svn/.*> Require all denied </DirectoryMatch> <DirectoryMatch .*\.git/.*> Require all denied </DirectoryMatch> <DirectoryMatch .*\.hg/.*> Require all denied </DirectoryMatch> <Directory /home/sandbox2/www/> Options Indexes FollowSymLinks MultiViews AllowOverride All DirectoryIndex index.php index.html index.htm php_admin_value session.save_path /tmp/php_sessions/www php_admin_value upload_tmp_dir /tmp/php_upload/www Require all granted </Directory> <Directory /home/sandbox2/www/bitrix/cache> AllowOverride none Require all denied </Directory> <Directory /home/sandbox2/www/bitrix/managed_cache> AllowOverride none Require all denied </Directory> <Directory /home/sandbox2/www/bitrix/local_cache> AllowOverride none Require all denied </Directory> <Directory /home/sandbox2/www/bitrix/stack_cache> AllowOverride none Require all denied </Directory> <Directory /home/sandbox2/www/upload> AllowOverride none AddType text/plain php,php3,php4,php5,php6,phtml,pl,asp,aspx,cgi,dll,exe,ico,shtm,shtml,fcg,fcgi,fpl,asmx,pht php_value engine off </Directory> <Directory /home/sandbox2/www/upload/support/not_image> AllowOverride none Require all denied </Directory> <Directory /home/sandbox2/www/bitrix/images> AllowOverride none AddType text/plain php,php3,php4,php5,php6,phtml,pl,asp,aspx,cgi,dll,exe,ico,shtm,shtml,fcg,fcgi,fpl,asmx,pht php_value engine off </Directory> <Directory /home/sandbox2/www/bitrix/tmp> AllowOverride none AddType text/plain php,php3,php4,php5,php6,phtml,pl,asp,aspx,cgi,dll,exe,ico,shtm,shtml,fcg,fcgi,fpl,asmx,pht php_value engine off </Directory> ErrorLog logs/error_log # Possible values include: debug, info, notice, warn, error, crit, alert, emerg. LogLevel warn CustomLog logs/access_log combined <IfModule mod_rewrite.c> #Nginx should have "proxy_set_header HTTPS YES;" in location RewriteEngine On RewriteCond %{HTTP:HTTPS} =YES RewriteRule .* - [E=HTTPS:on,L] </IfModule> </VirtualHost> |