Moved from IIS to Apache. Having Problems.

Associate
Joined
9 Jul 2004
Posts
1,132
Location
Folding for OcUK
Hi,

Iv'e recently moved for IIS to Apache, but I'm having some teething trouble.

The main thing is that i can't seem to get my intranet accessible from both the LAN and the web. Ive read about virtual hosting on the apache site and set it up, but i can't get it working.
Can anyone help with that?

The other things are: How do i turn off directory viewing and How do i set a default document to be displayed like i can with IIS?
 
Associate
Joined
21 Oct 2003
Posts
228
You can set default document types using the following section of httpd.conf:

DirectoryIndex index.html index.html.var index.php

(just add the required filenames to the line)

and you can disable directory viewing by placing a minus sign in front of the word 'Indexes' in the following line in httpd.conf :

Options Indexes FollowSymLinks

These directives can also be set on a directory basis by placing them in a file called .htaccess in the directory.
 
Associate
OP
Joined
9 Jul 2004
Posts
1,132
Location
Folding for OcUK
Cheers Ozias.

I got the site working on the internet as well. Syntegra didn't open the http port on the mapped address.

One more thing. Now that I can view sites from the net, i've got two set up in the .conf file like this:
(Sorry about it italics, my boss doesn't want me putting the ip addresses :rolleyes: )
Code:
NameVirtualHost [I]internal ip address[/I]
NameVirtualHost [I]external ip address[/I]

<VirtualHost [I]internal ip address[/I] [I]external ip address[/I]>
   ServerName [I]external ip address[/I]
   ServerAlias INTRANET
   DocumentRoot "C:/INTRANET"
</VirtualHost>
<VirtualHost [I]external ip address[/I]>
   ServerName [I]external ip address[/I]
   DocumentRoot "C:/SETI"
</VirtualHost>

When i type external ip address/index.php in the browser it always goes to the intranet. I know there is something wrong with the way ive got it set up, i suspect its to do with the ServerName bit, but even if i change them, i can't figure out how to tell the browser to look at a specific site.
 
Back
Top Bottom