Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5049

Apache (2.4) redirecting main site to virtual host

$
0
0

Connecting to my site domain.com redirects me to 1 of the 4 virtual hosts I've configured in the conf.d directory. Every conf file has identical syntax, replacing {test}.domain.com with test1, test2, test3 etc.

The only values changed in the main conf/httpd.conf file were the ServerAdmin parameter, and ServerName parameter, of which are username@myemailservice.com and domain.com respectively.

The VirtualHostdomain.com query redirects to is the highest alphanumerically ordered conf file in the conf.d directory if that helps.

<VirtualHost *:80>    ServerName test.domain.com    ServerAdmin root@localhost    DocumentRoot /var/www/test/public_html<Directory /var/www/test/public_html>        Options -Indexes +FollowSymLinks        AllowOverride All        DirectoryIndex index.php</Directory>    ErrorLog /var/log/httpd/test.domain.com-error.log    CustomLog /var/log/httpd/test.domain.com-access.log combined</VirtualHost>

Viewing all articles
Browse latest Browse all 5049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>