Multiple public folders with Apache

Status
Not open for further replies.

TheMajor

PowerQuest / Opera
Messages
10,176
Location
Netherlands
I have Apache installed. My htdocs folder is shared at port 777. I want another folder to be shared by Apache at port 80. Is this possible?
 
you need to set up virtual hosts..try something like this in your conf file:

Code:
Listen 777
Listen 80

<VirtualHost *:777>
    ServerAdmin [email]admin@port1.com[/email]
    ServerName 192.168.1.1
    DocumentRoot "C:\Program Files\Apache Foundation\Apache\htdocs\site1"
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin [email]admin@port2.com[/email]
    ServerName 192.168.1.1
    DocumentRoot "C:\Program Files\Apache Foundation\Apache\htdocs\site2"
</VirtualHost>
 
Status
Not open for further replies.
Back
Top Bottom