using virtual host name based - question.
im running a virtual host setup on multiple websites in my webserver.
so.. site.com = /var/www/site1 site2.com = /var/www/site2 it works fine. but whenever i get to click something on any of the page (e.g about.html), it changes back to the IP, so it shows http://192.168.1.20/site1/about.html instead of http://site.com/about.html its not consistently using the domain. |
Show your vhost cfgs.
A typical one looks like Code:
NameVirtualHost 192.168.0.100:80 |
No it should not be like this.
Have you correctly defined the VH settings in your conf file? Have you defind the virtual host name in your /etc/hosts file and every hosts file from where you are going to access your site? These are proper methods to set up virtual host. https://httpd.apache.org/docs/2.4/vhosts/examples.html |
All times are GMT -5. The time now is 04:34 AM. |