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....
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 | |
|
|