First off, I am using Web-Developer Server Suite v1.95. I am using this version because I am using some scripts (can’t remember what they are at the moment) that need mod_perl. I would love to upgrade to the latest paid version, but I am pretty sure I need mod_perl for those scripts, but it looks like Apache 2.2.6 does not support mod_perl.
1. Is there a way to use those scripts with Web.Developer Server Suite v3.0?The main reason for my post is to find out why my server is behaving as described below. Let me start by describing my set up.
I have two domains and two separate SSL certs. (e.g.
www.mysite1.com,
www.mysite2.com)
I have added the following in my 'www\Apache22\conf\extra\httpd-vhosts.conf' file as well as other subdomains:
<VirtualHost *:80>
DocumentRoot /www/webroot/
ServerName localhost
</VirtualHost>
######################################
<VirtualHost *:80>
ServerName mysite1.com
DocumentRoot E:/htdocs/mysite1.com
ScriptAlias /cgi-bin/ "C:/www/cgi-bin/"
ScriptAlias /fcgi-bin/ "C:/www/fcgi-bin/"
ServerAlias www.mysite1.com
ServerAdmin webmaster@mysite1.com
<Directory E:/htdocs/mysite1.com>
Options IncludesNOEXEC
Order allow,deny
Allow from all
AllowOverride All
</Directory>
</VirtualHost>
######################################
<VirtualHost *:80>
ServerName mail.mysite1.com
DocumentRoot E:/htdocs/mail.mysite1.com
ScriptAlias /cgi-bin/ "C:/www/cgi-bin/"
ScriptAlias /fcgi-bin/ "C:/www/fcgi-bin/"
ServerAdmin webmaster@mysite1.com
<Directory E:/htdocs/mail.mysite1.com >
Options IncludesNOEXEC
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
######################################
<VirtualHost *:80>
ServerName mysite2.com
DocumentRoot E:/htdocs/mysite2.com
ScriptAlias /cgi-bin/ "C:/www/cgi-bin/"
ScriptAlias /fcgi-bin/ "C:/www/fcgi-bin/"
ServerAlias www.mysite2.com
ServerAdmin webmaster@mysite2.com
<Directory E:/htdocs/mysite2.com>
Options IncludesNOEXEC
Options FollowSymLinks
Order allow,deny
Allow from all
AllowOverride All
</Directory>
</VirtualHost>
######################################
<VirtualHost *:80>
ServerName support.mysite2.com
DocumentRoot E:/htdocs/support.mysite2.com
ScriptAlias /cgi-bin/ "C:/www/cgi-bin/"
ScriptAlias /fcgi-bin/ "C:/www/fcgi-bin/"
ServerAdmin webmaster@mysite2.com
<Directory E:/htdocs/support.mysite2.com>
Options IncludesNOEXEC
Options FollowSymLinks
Order allow,deny
Allow from all
AllowOverride All
</Directory>
</VirtualHost>
I have added the following in my 'www\Apache22\conf\extra\httpd-ssl.conf' file:
<VirtualHost 192.168.0.101:443>
ServerName mysite1.com
DocumentRoot E:/htdocs/mysite1.com
ScriptAlias /cgi-bin/ "C:/www/cgi-bin/"
ScriptAlias /fcgi-bin/ "C:/www/fcgi-bin/"
ServerAlias www.mysite1.com
ServerAdmin webmaster@mysite1.com
SSLEngine On
SSLCertificateKeyFile "C:/www/Apache22/conf/ssl.key/www.mysite1.com.key"
SSLCertificateFile "C:/www/Apache22/conf/ssl.crt/www.mysite1.com.crt"
<Directory E:/htdocs/mysite1.com>
Options IncludesNOEXEC
Order allow,deny
Allow from all
AllowOverride All
</Directory>
</VirtualHost>
######################################
<VirtualHost 192.168.0.102:443>
ServerName mysite2.com
DocumentRoot E:/htdocs/mysite2.com
ScriptAlias /cgi-bin/ "C:/www/cgi-bin/"
ScriptAlias /fcgi-bin/ "C:/www/fcgi-bin/"
ServerAlias www.mysite2.com
ServerAdmin webmaster@mysite2.com
SSLEngine On
SSLCertificateKeyFile "C:/www/Apache22/conf/ssl.key/www.mysite2.com.key"
SSLCertificateFile "C:/www/Apache22/conf/ssl.crt/www.mysite2.com.crt"
<Directory E:/htdocs/mysite2.com>
Options IncludesNOEXEC FollowSymLinks
Order allow,deny
Allow from all
AllowOverride All
</Directory>
</VirtualHost>
For some reason, I could not access 'mysite2.com' via "
https://www.mysite2.com" until I added "FollowSymLinks" to the 'Options' directive of '<VirtualHost 192.168.0.102:443>' in 'httpd-ssl.conf'. I did not have to add "FollowSymLinks" to the domain 'mysite1.com'. I could access it via "
https://www.mysite1.com" just fine.
2. Any ideas as to why I had to add "FollowSymLinks" to one domain but not the other?I can access any subdomain of 'mysite1.com' via https (e.g.
https://mail.mysite1.com,
https://www2.mysite1.com). Of course I get the IE7 warning about the SSL cert name not matching, but I can gain access.
When I try to access any subdomain of 'mysite2.com' via https, I get the following 403 error:
"You don't have permission to access / on this server."
3. Any ideas?Now for the main reason of this post… I just added a shopping cart to my 'mysite2.com' site and this cart has a very feature rich backend which includes "one click" setup for secure access to certain parts of the site such as the admin area and checkout. When I try to enable SSL (via the cart's admin panel) for these areas, it fails. I can access pages via https in this domain, but not the subdomains as I mentioned earlier. I have been in contact with their support department, but they are telling me it is a server configuration issue.
4. Can you tell me what I have done wrong?As I said earlier, I would like to upgrade to the latest version, but I fear I will "break" my web sites because mod_perl is no longer supported.
Sorry for the long post. I tried to keep it concise.