|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#16
|
||||
|
||||
|
@hiker
Hmm, I've never had any issues using plain old * instead of IP addresses, but I've had issues using IP addresses and not *. Regardless, wouldn't the IPs need to be the external one for them to "catch" the request? @vital101 Try changing your 192 addresses in your <VirtualHost>s to the 24. address to which your domains resolve.
__________________
# Jeremy Explain your problem instead of asking how to do what you decided was the solution. |
|
#17
|
|||
|
|||
|
When I changed the virtualhost address from 192. to 24. nothing worked. I keep getting a 404 error for ALL sites. I also changed the NameVirtualHost to the 24. address.
|
|
#18
|
|||
|
|||
|
Okay guys, problem solved!
By having NameVirtualHost * and <VirtualHost *> everything worked fine. Thanks for the help and direction! |
|
#19
|
||||
|
||||
|
Quote:
Glad you got it sorted... @jharnois: That's what forwarding the port to the internal machine is for.... the router catches the external IP and translates it to the internal, regardless of how many domains are on one machine... I have 7 domains on my linux machine using the same IP... But then again, knowing my luck with computers, I probably have something configured wrong somewhere which is preventing me from just using *'s... oh well. |
|
#20
|
||||
|
||||
|
Right, but by using *s you're telling Apache that it doesn't matter on what IP the request was made. IOW, it doesn't matter what any domain.com resolves to b/c it will be tested against any <VirtualHost>.
The only time I've used IPs is when I have multiple domains with multiple IPs and I want a different default for each of those IPs. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > general - Virtual Hosts Problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|