simpli Posted May 30, 2009 Share Posted May 30, 2009 I have some problems with my virtual hosting. I have two websites in 2 different folders under my /library/WebServer/documents folder (I'm on a mac). I therefore have folder budgetobjects and quickstart (2 separate sites). I created my virtual hosts but it's not working. When I go to either http://localhost/budgetobjects/ or http://localhost/quickstart/ I get the error message: You don't have permission to access /quickstart/ on this server. I have order allow, deny so I don't know why I have this error message. When I look at my error log, I see that http://localhost/budgetobjects/ resolves to Library/webserver/documents/budgetObjects/public/budgetobjects and http://localhost/quickstart/ resolves to Library/webserver/documents/budgetObjects/public/quickstart. Thats not what I expected. I expected each to resolve to their proper directory. Can anyone tell me what's wrong. here's an excerpt of my httpd.conf I've read plenty of doc but can't seem to solve this. Thanks in advance, JR <Directory /> Options FollowSymLinks AllowOverride All Order deny,allow Deny from all </Directory> <Directory "/Library/WebServer/Documents"> Options Indexes FollowSymLinks MultiViews AllowOverride All Options FollowSymLinks Order allow,deny Allow from all Options Indexes MultiViews AllowOverride AuthConfig </Directory> <IfModule dir_module> DirectoryIndex index.html </IfModule> <FilesMatch "^\.([Hh][Tt]|[Dd][ss]_[ss])"> Order allow,deny Deny from all Satisfy All </FilesMatch> <Files "rsrc"> Order allow,deny Deny from all Satisfy All </Files> <DirectoryMatch ".*\.\.namedfork"> Order allow,deny Deny from all Satisfy All </DirectoryMatch> NameVirtualHost *:80 <VirtualHost *:80> ServerName http://localhost/budgetobjects/ DocumentRoot /library/webserver/documents/budgetObjects/public <Directory "/library/WebServer/Documents/budgetobjects/public"> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all </Directory> ErrorLog /var/log/budgetobjects/errors.log CustomLog /var/log/budgetobjects/access.log common </VirtualHost> <VirtualHost *:80> DocumentRoot /library/webserver/documents/quickstart/quickstart/public <Directory "/library/WebServer/Documents/quickstart/quickstart/public"> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all </Directory> ServerName http://localhost/quickstart/ ErrorLog /var/log/quickstart/errors.log CustomLog /var/log/quickstart/access.log common </VirtualHost> Quote Link to comment https://forums.phpfreaks.com/topic/160261-virtual-host-troubleshooting/ Share on other sites More sharing options...
DarkSuperHero Posted May 30, 2009 Share Posted May 30, 2009 MAMP ? http://www.mamp.info/en/index.html Quote Link to comment https://forums.phpfreaks.com/topic/160261-virtual-host-troubleshooting/#findComment-845865 Share on other sites More sharing options...
simpli Posted May 30, 2009 Author Share Posted May 30, 2009 I've tried the MAMP approach and it works fine. One problem: I already have a website running using mamp and I don't know how to set up to have multiple sites. I also want to learn it properly too.. Quote Link to comment https://forums.phpfreaks.com/topic/160261-virtual-host-troubleshooting/#findComment-845868 Share on other sites More sharing options...
DarkSuperHero Posted May 30, 2009 Share Posted May 30, 2009 Yeah, I dont have much experience with setting this up, so im out of the picture... Good Luck Cheers! Quote Link to comment https://forums.phpfreaks.com/topic/160261-virtual-host-troubleshooting/#findComment-845870 Share on other sites More sharing options...
mattclements Posted June 4, 2009 Share Posted June 4, 2009 Hey, Do each of these folders contain an index.html file? Looks to me like the DirectoryIndex index.html is there, but you may have index.htm or index.php etc - if so - add this to the config file. Regards, Matt Quote Link to comment https://forums.phpfreaks.com/topic/160261-virtual-host-troubleshooting/#findComment-849157 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.