Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-10-2003, 10:07 PM   PM User | #1
Bawy
New Coder

 
Join Date: Sep 2002
Location: eNYCe
Posts: 83
Thanks: 0
Thanked 0 Times in 0 Posts
Bawy is an unknown quantity at this point
1 instance of Apache running 2 sites on 2 different ports @ localhost

I would like to run more then one site from one Apache instance at localhost. Each site is at a different directory and can be accessed from a different port, I currently have this set up by running multiple instances of Apache, but this is eating away my ram, how can I set up httpd.conf to work more then one site via port number.

Accessing the sites by directory is not an option, the sites use absolute paths and wont work as a subdirectory (I can't do http://localhost/site1/ and http://localhost/site2/ gotta be http://locahost:81/ and http://locahost:82/)
Bawy is offline   Reply With Quote
Old 04-10-2003, 10:17 PM   PM User | #2
brothercake
Senior Coder


 
Join Date: Jun 2002
Location: near Oswestry
Posts: 4,508
Thanks: 0
Thanked 0 Times in 0 Posts
brothercake is an unknown quantity at this point
Like this http://www.codingforums.com/showthre...threadid=12960
__________________
"Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark
brothercake is offline   Reply With Quote
Old 04-12-2003, 12:57 AM   PM User | #3
Bawy
New Coder

 
Join Date: Sep 2002
Location: eNYCe
Posts: 83
Thanks: 0
Thanked 0 Times in 0 Posts
Bawy is an unknown quantity at this point
Exactly like that! Thanks. Just reclaimed 25mb of ram...
Bawy is offline   Reply With Quote
Old 04-12-2003, 02:11 AM   PM User | #4
brothercake
Senior Coder


 
Join Date: Jun 2002
Location: near Oswestry
Posts: 4,508
Thanks: 0
Thanked 0 Times in 0 Posts
brothercake is an unknown quantity at this point
Not surprised ... I must admit I cringed at the thought of you running multiple instances
__________________
"Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark
brothercake is offline   Reply With Quote
Old 04-16-2003, 06:51 AM   PM User | #5
Bawy
New Coder

 
Join Date: Sep 2002
Location: eNYCe
Posts: 83
Thanks: 0
Thanked 0 Times in 0 Posts
Bawy is an unknown quantity at this point
Actually I just read of a technique of using two Apache instances to ease the load on a server. One instance is barebones, the other has all the features you need for your application (PHP and any other modules/extensions) Your scripted (PHP) files will naturally only work with the one server, but your jpgs and gifs are accessed through the barebones instance. Supposedly this is easier on the server because PHP and other modules are not instantiated for each 45 byte spacer image that get's served.

The choice of which server handles the request is done via checking the file extension (or lack of one) in the apache configuration files, I wonder if that regex checking does not take more load then just serving the images?
Bawy is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 04:59 AM.


Advertisement
Log in to turn off these ads.