Login or Register to Ask a Question and Join Our Community

Perhaps, different websites on same Apache server.

Thread Tools Search this Thread
Top Forums Web Development Perhaps, different websites on same Apache server.
# 1  
Old 10-01-2010
Perhaps, different websites on same Apache server.

Reading Apache documentation I come to understand that it can host different websites, either by FQDN or IP address, virtually.

Is it possible for an Apache server to run two sites, and no one be able to tell from outside, that they are hosted in the same server? If not possible.

Essentially, what would it take to host two sites locally, so that it would not be linked to the same administration source, or that one site has anything to do with the other at the hosting level?

Different domain names and different public IP addresses are a given, but how about DNS and Apache?
# 2  
Old 10-01-2010
Really, the only way to do this functionally is with virtualization of the host(s). Or running them on separate boxes.

Consider a request to the two different servers. Assume two different IP addresses on different subnets, different DNS domains, and different DNS servers providing those zones. Even consider the machine they're being hosted on being multi-homed, with two different paths to the IP addresses for each site.

If they're still running on the same apache process on the same box, you can tell.

Fire up your favorite stress tester and point it at one of the sites, and start hitting it hard - and the other one will likely slow down.

It's possible that if you ran one apache process on one port, and and entirely separate one on another port, and you tuned the heck out of them, this sort of evidence might be hard to discover. But really, eventually, someone would be able to tell.

Now, if you're asking how to just keep them separate functionally, different IPs and different DNS along with a decent apache virtual configuration will provide that. Of course, if you bring down one (i.e. apache is restarted or stopped) you will bring down the other one as well. So, if you need that sort of separation, look at virtualization, or run them on different hosts.
This User Gave Thanks to malcolmpdx For This Post:
# 3  
Old 10-03-2010
I believe the same IP and port can host infinite web site host names, as the web server can translate the target host name in the HTTP header into a subtree for that site.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

One DMZ server reverse proxy for 2 websites

Hi All, Hope this is the correct thread to ask this, if not, can an admin please move it to the correct thread. Got a wee problem I hope someone can point me in the right direction. I have Network A with two servers hosting separate webpages (I will call these WP1 & WP2). A DMZ server... (6 Replies)
Discussion started by: dakelly
6 Replies

2. Red Hat

CPU high - apache real server OK, virtual server not

Got two RHEL servers - one real and one virtual/cloud. Both run apache web server. When traffic is applied, CPU seems to go quite high on virtual one (20%) but real is not really affected. Worry is that a further increase in traffic will see a problem. Experience of RHEL is limited. Whats... (2 Replies)
Discussion started by: psychocandy
2 Replies

3. Programming

Problem with Perl script after moving from a Windows/Apache Server to a UNIX server.

I have a Perl script that worked fine before moving it to justhost.com. It was on a Windows/Apache server. Just host is using UNIX. Other Perl scripts on other sites that were also moved work fine so I know Perl is functioning. The script is called cwrmail.pl and is located in my cgi-bin. When I... (9 Replies)
Discussion started by: BigBobbyB
9 Replies

4. UNIX for Advanced & Expert Users

Starting an Apache Server

Sir, I have installed an Apache server in Fedora 9 (packages) and when i go to etc folder and try the command httpd -k start it says command not found....can any one help me out!!! ---------- Post updated at 12:02 PM ---------- Previous update was at 11:46 AM ---------- When i... (4 Replies)
Discussion started by: bssandeshbs
4 Replies

5. UNIX for Dummies Questions & Answers

moving apache from 1 server to another

i need to move apache 2.2 from one server over to another server..... my servers are in atlanta and i'm logged in here in florida... what commands do i use ???? somebody mentioned the fetch command... please help.... i'm an idiot when it comes to unix (2 Replies)
Discussion started by: marinob007
2 Replies

6. UNIX for Dummies Questions & Answers

Apache Server

I have a question concerning the log file from an apache web server. How can I : a) roughly estimate the number of requests processed per second by the web server. b) tally the top ten hosts who send most of the requests to the web server for the last 30 minutes. Could any... (1 Reply)
Discussion started by: ppychu
1 Replies

7. UNIX for Advanced & Expert Users

Apache /server-status

HI, Where is the script for /server-status handler located? Can i change code of the script somehow? Thank you all (3 Replies)
Discussion started by: solvman
3 Replies

8. UNIX for Dummies Questions & Answers

Apache Web Server

Hi, Can someone help me for the Apache Web Server files for HP-UX 11.0 systems. Is there any download available? Thanks in Advance Anent (9 Replies)
Discussion started by: anent
9 Replies

9. UNIX for Dummies Questions & Answers

Apache Server

I Don't speak english very good... i'm new to unix. I have Win98SE and Apache for win32 Pentium MMX-166MHz 200MB Free Apache/1.3.20 (Win32) PHP/4.0.6 My url is my ip and i want to get domain exsample "www.cfir.co.il" so i want to get UNIX. i want to get standard UNIX server not... (4 Replies)
Discussion started by: cfir
4 Replies
Login or Register to Ask a Question

Featured Tech Videos