Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [users@httpd] Rewrite http to https
- From: "Huesser Peter" <peter.huesser@xxxxxx>
- Subject: RE: [users@httpd] Rewrite http to https
- Date: Thu, 21 Sep 2006 09:15:56 +0200
> > I want to rewrite all request to > "http:virtual.server.domain/path/file.html" > > to "https://virtual.server.domain/path/file.html". One of > > the solutions I found is: > > The simplest solution to this is as follows. If you have both an http > and https server, then you should have a <VirtualHost> block for each > server. Inside the <VirtualHost> block for the non-ssl server (ie, > the one on port 80), put a normal redirect: > Redirect /path/file.html https://virtual.server.domain/path/file.html > > > > > I but this in the htaccess file of the DocumentRoot of the virtual > server > > and also in the main httpd.conf file of the webserver. Both did not > work. So > > I tried the following: > > Don't use htaccess files if you have access to httpd.conf. > mod_rewrite directives must also be placed inside the <VirtualHost> > section, or you must include > RewriteEngine On > RewriteOptions inherit > inside the <VirtualHost>. > > If you have further problems with mod_rewrite, be sure to use the > RewriteLog to debug. > Thanks. This solution works. I have to make the Redirects in the <VirtualHost> block. Pedro --------------------------------------------------------------------- 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
- References:
- Re: [users@httpd] Rewrite http to https
- From: Joshua Slive
- Re: [users@httpd] Rewrite http to https
- Prev by Date: RE: [users@httpd] Rewrite http to https
- Next by Date: Re: [users@httpd] httpd-2.2.3 / MySQL 5.0.24a - buildsteps and improved error reporting
- Previous by thread: Re: [users@httpd] Rewrite http to https
- Next by thread: Re: [users@httpd] Rewrite http to https
- Index(es):