![]() |
|
#1
|
|||
|
|||
Apache2 virtual host problemI have Centos and Apache 2. I am trying to make 2 domains to work on one IP address using name based. This doesn't work. Only first domain works. I change them around, so problem is not there.
I googled and found that some have same problem but no answer. So, I am asking your help my friends! |
|||
|
#2
|
|||
|
|||
Re: apache2 virtual host problemI found solution to this problem. New apache version requires in virtual host tag domain name not ip addr.
Like this: <VirtualHost www.mydomain.info:80> |
|
#3
|
|||
|
|||
Re: apache2 virtual host problemI have th same problem but adding the virtual host domain name did not fix it.....any other ideas please?
(win XP Pro). running httpd -S says I have 4 vhosts set up, but only the default ever gets served. using name based on a dynamic IP, but all hosts are DNS'd and can be pinged.... tried everything.... |
|
#4
|
|||
|
|||
Re: Apache2 virtual host problemSorry peterhenley, I am no expert in this. I use Centos Linux, very good, recommend it. This however may not resolve your problem
Your problem sounds odd. Maybe if you could post your httpd.conf file here. Starting from virtual host part. Then me or someone could compare it and find solution or not. Otherwise I got nothing |
|
#5
|
|||
|
|||
Re: Apache2 virtual host problemSeems like a directory problem I think...but I have tried every combination. I always only get the default served up.
Do you know where each directive should go (virtual vs the main config file?) Thanks for helping out !!!!! how do I post the files? virtual one pasted below: Code:
|
|
#6
|
|||
|
|||
Re: Apache2 virtual host problemI see the problem my friend
DO IT LIKE THIS <VirtualHost http://www.peterhenley.com:80> NOT LIKE THIS Code:
Try to change all of them like that. Hope it works then. Let me know. If they don't, we try something else |
|
#7
|
|||
|
|||
Re: Apache2 virtual host problemNope, if I do that, I get on web page:
Index of / carolinehenley/ henleyfamily/ peterhenley/ pshenley/ Apache/2.2.4 (Win32) Server at mywebhopserver.peterhenley.com Port 2300 and no page not even default one..... that's why I think it's a directory + virtual host problem... |
|
#8
|
|||
|
|||
Re: Apache2 virtual host problemdumb question:
does Windows XP Pro allow multiple hosts?????? |
|
#9
|
|||
|
|||
Re: Apache2 virtual host problemThese are my virtual hosts and they work. Try to use it like this and for now don't put other things in there. Hope this helps.
Code:
|
|
#10
|
|||
|
|||
Re: Apache2 virtual host problemDuh, I figured out my problem - not a vhosts issue! Because my hosts are redirected from port 80 to another (my ISP blocks 80), the actual name of servers Apache should be looking for is.......servername = mywebhopserver.pshenley.com, not pshenley.com, etc.
Strangely, the default http://www.peterhenley.com, does not need this change... Thanks for your input! |
Recent GIDBlog
Once again, no time for hobbies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with Virtual Hosting Multiple Websites - Apache 2.2.2 | Cheesehead | Apache Web Server Forum | 1 | 08-Sep-2006 09:05 |
| Apache2 problem | saifeesl | Apache Web Server Forum | 1 | 09-Mar-2006 02:08 |
| Invalid virtual host name? | Darksat | Apache Web Server Forum | 0 | 16-Dec-2004 12:40 |
| Problems with Virtual Host not working | Matt J | Apache Web Server Forum | 0 | 04-Aug-2004 20:26 |
| Apache2 config issues | monev | Apache Web Server Forum | 2 | 28-Jun-2004 07:19 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The