httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John <isofr...@cc.uoi.gr>
Subject Re[2]: [users@httpd] Many virtual hosts on 80 port and one on 443 (SSL)
Date Mon, 06 Feb 2006 11:51:10 GMT
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 <Axel-Stephane.SMORGRAV@europe.adp.com>
To: <users@httpd.apache.org>, "John" <isofroni@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


Mime
View raw message