I setup apache for everyone virtual hosts for ports 80, and 443 (see below). The issue is with "myurl2.me".
For whatever reason, I'm able to access "myurl2.me/test.html" however i cannot access "myurl2.me/subdir/test.html". After I make an effort to access stated subdirectory, the request is acquired through the redirect virtual host, which obviously transmits me towards the ssl version of "myurl.com" on port 443.
Does anybody have ideas why this really is happening? Any help could be greatly appreciated.
NameVirtualHost 220.127.116.11:80 <VirtualHost 18.104.22.168:80> ServerName myurl.com RedirectPermanent / https://myurl.com/ </VirtualHost> <VirtualHost 22.214.171.124:80> ServerName myurl2.me DocumentRoot /var/www/myurl2.me/html </VirtualHost> NameVirtualHost 126.96.36.199:443 <VirtualHost 188.8.131.52:443> SSLEngine On SSLCertificateFile /etc/httpd/ssl/mycert.crt SSLCertificateKeyFile /etc/httpd/ssl/mykey.key SSLCertificateChainFile /etc/httpd/ssl/PositiveSSL.ca-bundle ServerName myurl.com DocumentRoot /var/www/myurl.com/html </VirtualHost>