RE: [users@httpd] Many virtual hosts on 80 port and one on 443 (SSL)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx] 
Sent: Monday, February 06, 2006 10:52 AM
To: users@xxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux