I am trying to create a new virtual host, and everything seems to be fine, but for some reason, it's not loading my DocumentRoot. For example, my server has two IP address. ServerRoot (if there is even such a thing) points to /var/opt/blah. I create a virtual host that has a document root that points to /srv/ Everytime I go to my new virtual host on the browser, it goes to /var/opt/blah. But if I go to then it goes to the proper site. I don't know if my configuration is wrong or if I have to go turn something off. Anyone have any ideas? Here's what my virtual host configuration look like:
This file is an include file that's included into httpd.conf. Keeps it modular.
Code:
<IfDefine SSL>
<IfDefine !SSL>
NameVirtualHost 12.29.124.46:443
</IfDefine>
</IfDefine>
DirectoryIndex index.htm index.html login.htm
<Directory "/srv/[URL unfurl="true"]www/htdocs/ttweb">[/URL]
SSLRequireSSL
Options MultiViews
AllowOverride None
Order deny,allow
Allow from all
</Directory>
<VirtualHost 12.29.124.46:80>
ServerName TTPro.Valence.com
ServerAdmin HelpDesk@Valence.com
DocumentRoot "/srv/[URL unfurl="true"]www/htdocs/ttweb"[/URL]
RedirectMatch permanent (/.*) [URL unfurl="true"]https://ttpro.valence.com$1[/URL]
</VirtualHost>
<IfDefine SSL>
<IfDefine !SSL>
<VirtualHost 12.29.124.46:443>
ServerName TTPro.Valence.com
ServerAdmin HelpDesk@Valence.com
DocumentRoot "/srv/[URL unfurl="true"]www/htdocs/ttweb"[/URL]
ErrorLog /var/log/apache2/ttpro-ssl_error_log
TransferLog /var/log/apache2/ttpro-ssl_access_log
SSLEngine on
SSLCertificateFile /etc/apache2/ssl.crt/TTPro.der
SSLCertificateKeyFile /etc/apache2/ssl.key/ttpro.valence.com.key
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
</VirtualHost>
</IfDefine>
</IfDefine>
This file is an include file that's included into httpd.conf. Keeps it modular.