Apache Virtual Host Configuration
Posted
by
Carl
on Server Fault
See other posts from Server Fault
or by Carl
Published on 2011-11-29T15:20:23Z
Indexed on
2011/11/30
1:55 UTC
Read the original article
Hit count: 250
I have been searching the internet for an hour now, and I was hoping for a quick hint here so that I could solve my problem a wee bit faster.
My virtual server is so far only accessible through an IP address, no DNS entry yet, and so far none needed either.
The problem I have is with Apache2, the virtual hosts are puzzling me.
What I need is:
Access to my project (based on Symfony2) from the outside with the IP address
Access to my project from localhost
What I have got:
Access from the outside results in rendering the websites in /var/www/vhosts/htdocs/default, while from the inside results in rendering the websites in /var/www. Why the difference?
What is a recommended configuration for my use case?
© Server Fault or respective owner