Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > PC Technology Zone > Computer Networking & Internet Access » Multiple public folders with Apache
Closed Thread
Old 04-25-2005, 11:45 AM   #1 (permalink)
TheMajor's Avatar
 
PowerQuest / Opera

Join Date: Jun 2004

Location: Netherlands

Posts: 10,101

TheMajor is on a distinguished road

Default Multiple public folders with Apache

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?
__________________
TheMajorMMX - Intel P200 MMX @ 225Mhz - V-Tech (PcPartner) Baby-AT mb w/ Intel Triton TX chipset - Nvidia Riva TNT2 M64 w/ 16MB - Still running.....
TheMajor is offline  
Old 04-26-2005, 03:14 AM   #2 (permalink)
 
Junior Techie

Join Date: Aug 2004

Posts: 81

urbanwks

Default

you need to set up virtual hosts..try something like this in your conf file:

Code:
Listen 777
Listen 80

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

<VirtualHost *:80>
    ServerAdmin admin@port2.com
    ServerName 192.168.1.1
    DocumentRoot "C:\Program Files\Apache Foundation\Apache\htdocs\site2"
</VirtualHost>

urbanwks is offline  
Old 04-26-2005, 10:52 AM   #3 (permalink)
TheMajor's Avatar
 
PowerQuest / Opera

Join Date: Jun 2004

Location: Netherlands

Posts: 10,101

TheMajor is on a distinguished road

Default

That looks like it should do what I want! Thanks.
I will try it next week.

__________________
TheMajorMMX - Intel P200 MMX @ 225Mhz - V-Tech (PcPartner) Baby-AT mb w/ Intel Triton TX chipset - Nvidia Riva TNT2 M64 w/ 16MB - Still running.....
TheMajor is offline  
Old 04-26-2005, 04:20 PM   #4 (permalink)
 
Junior Techie

Join Date: Aug 2004

Posts: 81

urbanwks

Default

no problem at all.
__________________

MY 1337 SYST3M:
(1)case - generic
some ram.
45jiga-hurts intel pentium VIIteen hollywood
some more ram.
asusapaloozatron v7542 mobo
(9)5kb HDD
45x DVD+-/*
mouse(black)
urbanwks is offline  
Old 05-03-2005, 01:29 PM   #5 (permalink)
TheMajor's Avatar
 
PowerQuest / Opera

Join Date: Jun 2004

Location: Netherlands

Posts: 10,101

TheMajor is on a distinguished road

Default

It works! Thanks!
__________________
TheMajorMMX - Intel P200 MMX @ 225Mhz - V-Tech (PcPartner) Baby-AT mb w/ Intel Triton TX chipset - Nvidia Riva TNT2 M64 w/ 16MB - Still running.....
TheMajor is offline  
Old 05-03-2005, 02:29 PM   #6 (permalink)
 
Junior Techie

Join Date: Aug 2004

Posts: 81

urbanwks

Default

glad to hear it! no problem.
__________________

MY 1337 SYST3M:
(1)case - generic
some ram.
45jiga-hurts intel pentium VIIteen hollywood
some more ram.
asusapaloozatron v7542 mobo
(9)5kb HDD
45x DVD+-/*
mouse(black)
urbanwks is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On