httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Axel-St├ęphane SMORGRAV <Axel-Stephane.SMORG...@europe.adp.com>
Subject RE: [users@httpd] Many virtual hosts on 80 port and one on 443 (SSL)
Date Mon, 06 Feb 2006 11:28:14 GMT
What about this:

RewriteEngine ON
RewriteCond %{HTTP_HOST} =virtualhost 
RewriteRule .* - [F]


or alternatively

RewriteEngine ON
RewriteCond %{HTTP_HOST} !=sslservername
RewriteRule .* - [F]

Instead or returning a HTTP 403 you could redirect the request to the apropriate URL:

RewriteEngine ON
RewriteCond %{HTTP_HOST} !=sslservername
RewriteRule ^(.*)$ http://%{HTTP_HOST}$1 [R]

-ascs

-----Original Message-----
From: John [mailto:isofroni@cc.uoi.gr] 
Sent: Monday, February 06, 2006 10:52 AM
To: users@httpd.apache.org
Subject: [users@httpd] Many virtual hosts on 80 port and one on 443 (SSL)

Hi all

I have set up a web server with many virtua users on 80 and a virtual host on 443 port (SSL)

Then if a user type a domain of any virtual host (except SSL) using the form https://virtualhost
then it goes to the host on the 443.

Well, i want to prevent that from accessing SSL using any domain (included in my VHs)

Any ideas?



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message