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=3 D=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=3 D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D

-------------------------------->
NameVirtualHost *

ServerAdmin webmaster@localhost

DocumentRoot /var/www/

Options FollowSymLinks
AllowOverride None


Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all


ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all


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/"

Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128


DocumentRoot /var/www/phpmyadmin
ServerSignature On


RewriteEngine on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]




<---------------------------------------



=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=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=3 D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D

-------------------------------------->
NameVirtualHost *:443


# change: address of web admin
ServerAdmin webmaster@localhost
SSLEngine On
SSLCertificateFile /etc/ssl/CA/private/Administration-key-cert.pem

ServerSignature On


Options FollowSymLinks
AllowOverride None



ProxyHTMLLogVerbose On
ProxyHTMLExtended On


ProxyRequests Off

Order deny,allow
Allow from all


ProxyPass /ntop/ https://localhost:3000/
ProxyPassReverse /ntop/ https://localhost:3000/

<-------------------------------------------


When i go to http://server/, it redirects to https://server/ and i have =
a 404 error.

I just want to redirect http://admin.server/phpmyadmin (not http://serve=
r/phpmyadmin byt http://admin.server/phpmyadmin) to https://admin.server=
/phpmyadmin

I would also redirect the web pages of a software running on localhost:3=
000 (on the server) to https://admin.server/ntop/

How can i do that ?

Thanks !
Vianney



__________________________________________________ ____________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org