TheMajor PowerQuest / Opera Messages 10,176 Location Netherlands Apr 25, 2005 #1 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?
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?
U urbanwks Baseband Member Messages 81 Apr 26, 2005 #2 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>
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>
TheMajor PowerQuest / Opera Messages 10,176 Location Netherlands Apr 26, 2005 #3 That looks like it should do what I want! Thanks. I will try it next week.