essjay_d12 Posted March 5, 2007 Share Posted March 5, 2007 On the localhost i can type in the server name and it will run my koha web site, however a internal DNS has been set up and when I type the same address in it goes to the /var/www/index.html page that i created as a test page - if i remove the index.html page it runs the welcome.conf file. Why would the internal network not be able to access my virtual host this is how its set up..... httpd.conf untouched except for the following lines have been included... Listen 8080 Include /etc/koha-httpd.conf The /etc/koha-httpd.conf file has the following virtual hosts..... <VirtualHost pcol-koha.pembrokeshire.ac.uk:80> ServerAdmin [email protected] DocumentRoot /usr/local/koha/opac/htdocs ServerName pcol-koha.pembrokeshire.ac.uk ScriptAlias /cgi-bin/koha/ /usr/local/koha/opac/cgi-bin/ Redirect permanent index.html http://pcol-koha.pembrokeshire.ac.uk:80/cgi-bin/koha/opac-main.pl ErrorLog /usr/local/koha/log/opac-error_log TransferLog /usr/local/koha/log/opac-access_log SetEnv PERL5LIB "/usr/local/koha/intranet/modules" SetEnv KOHA_CONF "/etc/koha.conf" </VirtualHost> <VirtualHost pcol-koha.pembrokeshire.ac.uk:8080> ServerAdmin [email protected] DocumentRoot /usr/local/koha/intranet/htdocs ServerName pcol-koha.pembrokeshire.ac.uk ScriptAlias /cgi-bin/koha/ "/usr/local/koha/intranet/cgi-bin/" Redirect permanent index.html http://pcol-koha.pembrokeshire.ac.uk:80/cgi-bin/koha/mainpage.pl ErrorLog /usr/local/koha/log/koha-error_log TransferLog /usr/local/koha/log/koha-access_log SetEnv PERL5LIB "/usr/local/koha/intranet/modules" SetEnv KOHA_CONF "/etc/koha.conf" </VirtualHost> Anybody see anything that could be wrong? or know of anything i need to change, possibly elsewhere? thanks d Quote Link to comment https://forums.phpfreaks.com/topic/41242-virtual-host-works-on-localhost-but-not-on-internal-network/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.