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 <[EMAIL PROTECTED]>
To: <users@httpd.apache.org>, "John" <[EMAIL PROTECTED]>
Date: Monday, February 6, 2006, 1:28:14 PM
Subject: [EMAIL PROTECTED] 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:[EMAIL PROTECTED] 
> Sent: Monday, February 06, 2006 10:52 AM
> To: users@httpd.apache.org
> Subject: [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
>    "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


> ---------------------------------------------------------------------
> 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: [EMAIL PROTECTED]
>    "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to