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 s@pembrokeshire.ac.uk
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 s@pembrokeshire.ac.uk
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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.