Jump to content

virtual host works on localhost - but not on internal network!


essjay_d12

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.