User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » apache and virtual hosts (php/symfony too) Page [1]  
Oeuvre
All American
6651 Posts
user info
edit post

<VirtualHost *:80>
ServerName app.example.com
DocumentRoot "/home/applications/myproject/web"
DirectoryIndex index.php
Alias /sf /usr/share/pear/data/symfony/web/sf
<Directory "/usr/share/pear/data/symfony/web/sf">
AllowOverride All
Allow from All
</Directory>
<Directory "/home/applications/myproject/web">
AllowOverride All
Allow from All
</Directory>
</VirtualHost>


Ok, so I installed symfony for the first time and I'm trying to get it configured to where I install it once and use apache virtual hosts to point to the location instead of having an instance of symfony for every application I develop.

Question: why doesn't that directive above work?

If I go to app.example.com it brings up example.com (doesn't forward, the address is still maintained as app.example.com). Does this have to do with my DNS? This is a dedicated server, but shared amongst many domains, just a little info about my setup.

6/7/2008 8:53:22 PM

llama
All American
841 Posts
user info
edit post

so you're saying that if you specify app.example.com in your browser you're given the content for example.com from the default DocumentRoot?

do you have the following option in your httpd.conf file?

NameVirtualHost *:80


Also, if this is RHEL, don't forget to set the "httpd_enable_homedirs" SELinux boolean

6/7/2008 11:58:35 PM

 Message Boards » Tech Talk » apache and virtual hosts (php/symfony too) Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.38 - our disclaimer.