ModRewrite VirtualHost and SSL

This is a discussion on ModRewrite VirtualHost and SSL within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello, I'm trying to configure mass virtual host based on mod rewrite (per Apache 2.0 documentation: http://httpd....


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-19-2003
Scott Seong
 
Posts: n/a
Default ModRewrite VirtualHost and SSL

Hello,

I'm trying to configure mass virtual host based on mod rewrite (per Apache
2.0 documentation: http://httpd.apache.org/docs-2.0/vhosts/mass.html), and
basic functionality works. However, the SSL pages cannot be served. It
appears to searching pages in the /var/www/html, ... (per ssl_error_log).

Here is a sample of httpd.conf file:
--
RewriteEngine on
RewriteMap lowercase int:tolower

# define the map file
RewriteMap vhost txt:/var/www/html/vhost.map

# deal with aliases as above
RewriteCond %{REQUEST_URI} !^/icons/
RewriteCond %{REQUEST_URI} !^/cgi-bin/
RewriteCond ${lowercase:%{SERVER_NAME}} ^(.+)$
# this does the file-based remap
RewriteCond ${vhost:%1} ^(/.*)$
RewriteRule ^/(.*)$ %1/$1

RewriteCond %{REQUEST_URI} ^/cgi-bin/
RewriteCond ${lowercase:%{SERVER_NAME}} ^(.+)$
RewriteCond ${vhost:%1} ^(/.*)$
RewriteRule ^/(.*)$ %1/cgi-bin/$1
--
The /var/www/html/vhost.map contains the rewrite rule, i.e.
--
www.helloworld.com /home/someuser/www.helloworld.com
--

Now, How do I configure the Apache to serve https pages as well as the http?
Thanks.

Scott


 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:43 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0