Some problems with Virtual Host setup and SSL
Hello !
I've some problems with Virtual Hosts on Apache2, please have a look at=
my config files:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
File sites-enabled/default
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
-------------------------------->
NameVirtualHost *
<VirtualHost *>
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
</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, cr=
it,
# 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>
DocumentRoot /var/www/phpmyadmin
ServerSignature On
<IfModule mod_ssl.c>
RewriteEngine on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
</IfModule>
</VirtualHost>
<---------------------------------------
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D
File sites-enabled/ssl
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D
-------------------------------------->
NameVirtualHost *:443
<VirtualHost *:443>
# change: address of web admin
ServerAdmin webmaster@localhost
SSLEngine On
SSLCertificateFile /etc/ssl/CA/private/Administration-key-cert.pem
ServerSignature On
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
ProxyHTMLLogVerbose On
ProxyHTMLExtended On
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /ntop/ [url]https://localhost:3000/[/url]
ProxyPassReverse /ntop/ [url]https://localhost:3000/[/url]
<-------------------------------------------
When i go to [url]http://server/[/url], it redirects to [url]https://server/[/url] and i have =
a 404 error.
I just want to redirect [url]http://admin.server/phpmyadmin[/url] (not [url]http://serve=[/url]
r/phpmyadmin byt [url]http://admin.server/phpmyadmin[/url]) to [url]https://admin.server=[/url]
/phpmyadmin
I would also redirect the web pages of a software running on localhost:3=
000 (on the server) to [url]https://admin.server/ntop/[/url]
How can i do that ?
Thanks !
Vianney
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) [url]www.modssl.org[/url]
User Support Mailing List [email]modssl-users@modssl.org[/email]
Automated List Manager [email]majordomo@modssl.org[/email]