You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by John <is...@cc.uoi.gr> on 2006/02/06 12:51:10 UTC

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

mod_rewrite is not enabled in my server's configuration (well i don't
want to enable it)

Any other idea ?




From: Axel-Stéphane  SMORGRAV <Ax...@europe.adp.com>
To: <us...@httpd.apache.org>, "John" <is...@cc.uoi.gr>
Date: Monday, February 6, 2006, 1:28:14 PM
Subject: [users@httpd] Many virtual hosts on 80 port and one on 443 (SSL)



  Monday, February 6, 2006, 1:28:14 PM, you wrote:

  > 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






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