Апач 2,2,3
Проблема в следующем, был прикручен мод SSL. Настройки дефолтовые. Но апач постоянно при запуске материться вот так:
Дальше, проблема такая перестал работать mod_rewrite хотя он подключенForcing reload of web server (apache2)...[Thu Sep 11 11:27:50 2008] [error] VirtualHost 192.168.125.3:443 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
waiting [Thu Sep 11 11:27:53 2008] [error] VirtualHost 192.168.125.3:443 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
.
Из всех сконфигурированных хостов работает только default и Host 1 т.е. host 1 на порту 443 а default на 80. Если зайти по адресу прописанному в HOST2 то попадаеш на default а при открытии сайта HOST3 то вообще выбивает 403 ошибку и все.
Помогите разрулить эти пропроблемы.Forbidden
You don't have permission to access / on this server.
Apache Server at independent.lan Port 80
Выкладываю конфиги:
Виртуальные хочты:
default
Код: Выделить всё
#ServerName server1.independent.lan
#Listen 192.168.125.3
NameVirtualHost 192.168.125.3
<VirtualHost 192.168.125.3>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
# RedirectMatch ^/$ /apache2-default/
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
# Alias /doc/ "/usr/share/doc/"
# <Directory "/usr/share/doc/">
# Options Indexes MultiViews FollowSymLinks
# AllowOverride None
# Order deny,allow
# Deny from all
# Allow from 127.0.0.0/255.0.0.0 ::1/128
# </Directory>
</VirtualHost>
Код: Выделить всё
<VirtualHost 192.168.125.3:443>
DocumentRoot "/usr/abills/cgi-bin"
ServerName billing.independent.lan:443
#ServerAdmin admin@example.com
ErrorLog /usr/abills/var/log/abills-error.log
TransferLog /usr/abills/var/log/abills-access.log
CustomLog /usr/abills/var/log/abills-access_log common
<IfModule ssl_module>
# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /usr/abills/Certs/server.crt
SSLCertificateKeyFile /usr/abills/Certs/server.key
<FilesMatch "\.(cgi)$">
SSLOptions +StdEnvVars
</FilesMatch>
BrowserMatch ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
CustomLog /var/log/abills-ssl_request.log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</IfModule>
# User interface
<Directory "/usr/abills/cgi-bin">
<IfModule ssl_module>
SSLOptions +StdEnvVars
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^(.*) - [E=HTTP_CGI_AUTHORIZATION:%1]
Options Indexes ExecCGI SymLinksIfOwnerMatch
</IfModule>
AddHandler cgi-script .cgi
Options Indexes ExecCGI FollowSymLinks
AllowOverride none
DirectoryIndex index.cgi
Order allow,deny
Allow from all
<Files ~ "\.(db|log)$">
Order allow,deny
Deny from all
</Files>
#For hotspot solution
ErrorDocument 404 "/abills/"
directoryIndex "/abills" index.cgi
</Directory>
#Admin interface
<Directory "/usr/abills/cgi-bin/admin">
<IfModule ssl_module>
SSLOptions +StdEnvVars
</IfModule>
AddHandler cgi-script .cgi
Options Indexes ExecCGI FollowSymLinks
AllowOverride none
DirectoryIndex index.cgi
order deny,allow
allow from all
</Directory>
</VirtualHost>
Код: Выделить всё
ServerName server1.control.lan
<VirtualHost 192.168.125.3>
ServerAdmin support@independent-lan.com
#
#<IfModule mod_rewrite.c>
#RewriteEngine on
#RewriteCond %{HTTP:Authorization} ^(.*)
#</IfModule>
DocumentRoot /server/hosting/cs1.lan/www/
#ServerAlias *.server1.control.lan:80
<Directory "/server/hosting/cs1.lan/www/">
#AllowOverride None
Order allow,deny
Allow from all
Options +Indexes
</Directory>
ScriptAlias /cgi-bin/ /server/hosting/cs1.lan/cgi-bin/
<Directory "/server/hosting/cs1.lan/cgi-bin/">
AllowOverride None
#Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /server/hosting/cs1.lan/error.log
</VirtualHost>
Код: Выделить всё
<VirtualHost 192.168.125.3>
ServerAdmin support@independent-lan.com
DocumentRoot /server/hosting/independent.lan/www/
ServerName independent.lan
ServerAlias *.independent.lan
<Directory "/server/hosting/independent.lan/www/">
#AllowOverride None
Order allow,deny
Allow from all
Options +Indexes
</Directory>
ScriptAlias /cgi-bin/ /server/hosting/independent.lan/cgi-bin/
<Directory "/server/hosting/independent.lan/cgi-bin/">
AllowOverride None
#Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /server/hosting/independent.lan/error.log
</VirtualHost>
Код: Выделить всё
Listen 192.168.125.3:80
Listen 192.168.125.3:443
Listen 127.0.0.1:80