Virtual Hosts

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Virtual Hosts

Postby terrapinnation » 12. October 2007 13:41

please help..i finally got apachefriends to install the service in win vista ultimate & i have two domain names that need virtual host containers..ive tried the original style from an older version with no luck being:

#VirtualHost
NameVirtualHost *:80
<VirtualHost *:80>

ServerName www.terrapinnation.info
ServerAlias terrapinnation.info
DocumentRoot "/xammp/htdocs/terra"


</VirtualHost>

and i get access denied,not allowed to view the contents,restricted

i have my other domains intact but cant pull them up until this is resolved..

thanks

PS:try turning off user acct control in win vista & attempting to install svce :)
some rise...some fall...some climb...to get to terrapin......
terrapinnation
 
Posts: 3
Joined: 12. October 2007 13:28
Location: Winston Salem,NC

Postby Izzy » 12. October 2007 20:26

You will need to remove the default directory restrictions that are set in the httpd.conf file on a directory by directory basis using the <Directory> directive within your VirtualHost containers.

In your example it might look like this:
Code: Select all
#VirtualHost
NameVirtualHost *:80

<VirtualHost *:80>
ServerName terrapinnation.info
ServerAlias www.terrapinnation.info
DocumentRoot "C:/xammp/htdocs/terra"

<Directory "C:/xampp/htdocs/terra">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>

</VirtualHost>

As you can see I have added a few things that might help but you do not have to use them, other than the <Directory> directive of course.

I also swapped the ServerAlias as the domain name is usually the main domain and the www. is as a subdomain of the main domain.
Clue - this is also how to add more subdomains to a VirtualHost container like subdomain1.terrapinnation.info etc. etc.

BTW, I prefer to use the full directory path so if yours is different it would need to be altered of course.

More reading on the directives used can be found here.
http://httpd.apache.org/docs/2.3/mod/core.html
http://httpd.apache.org/docs/2.3/mod/di ... -dict.html
http://httpd.apache.org/docs/2.2/mod/directives.html

Just to add if you have any issues with the syntax of your httpd-vhosts.conf file and want to check it, then at a command prompt inside the xampp\apache\bin directory, issue this command:
apache -S
It will provide some useful clues.


===========================================
Take a look at the new DeskTopXampp launch control for XAMPP
and XAMPPlite (DTX.exe) posted by ridgewood:
http://community.apachefriends.org/f/viewtopi ... 967#103967
Available at Ridgewood's new DTX web site http://zedfiles.com/DTX/
Also available here: http://nat32.com/dtx/
I highly recommend DTX.
============================================
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby terrapinnation » 12. October 2007 22:06

Izzy wrote:You will need to remove the default directory restrictions that are set in the httpd.conf file on a directory by directory basis using the <Directory> directive within your VirtualHost containers.

In your example it might look like this:
Code: Select all
#VirtualHost
NameVirtualHost *:80

<VirtualHost *:80>
ServerName terrapinnation.info
ServerAlias www.terrapinnation.info
DocumentRoot "C:/xammp/htdocs/terra"

<Directory "C:/xampp/htdocs/terra">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>

</VirtualHost>

As you can see I have added a few things that might help but you do not have to use them, other than the <Directory> directive of course.

I also swapped the ServerAlias as the domain name is usually the main domain and the www. is as a subdomain of the main domain.
Clue - this is also how to add more subdomains to a VirtualHost container like subdomain1.terrapinnation.info etc. etc.

BTW, I prefer to use the full directory path so if yours is different it would need to be altered of course.

More reading on the directives used can be found here.
http://httpd.apache.org/docs/2.3/mod/core.html
http://httpd.apache.org/docs/2.3/mod/di ... -dict.html
http://httpd.apache.org/docs/2.2/mod/directives.html

Just to add if you have any issues with the syntax of your httpd-vhosts.conf file and want to check it, then at a command prompt inside the xampp\apache\bin directory, issue this command:
apache -S
It will provide some useful clues.


===========================================
Take a look at the new DeskTopXampp launch control for XAMPP
and XAMPPlite (DTX.exe) posted by ridgewood:
http://community.apachefriends.org/f/viewtopi ... 967#103967
Available at Ridgewood's new DTX web site http://zedfiles.com/DTX/
Also available here: http://nat32.com/dtx/
I highly recommend DTX.
============================================
thanks a bunch izzy...i'll pass this down my chief admin,also my fiance' and co owner at terrapin nation ms jacquelyn & we'll get right on it...much obliged budd for the info..as i read,this new version is no walk in the park unlike earlier versions & well with all the excitement of apachefriends actually running on vista,its a worthwhile task...

anyways i'll let ya know how it works out & thanks again

TJ
some rise...some fall...some climb...to get to terrapin......
terrapinnation
 
Posts: 3
Joined: 12. October 2007 13:28
Location: Winston Salem,NC

Postby terrapinnation » 14. October 2007 04:01

terrapinnation wrote:
Izzy wrote:You will need to remove the default directory restrictions that are set in the httpd.conf file on a directory by directory basis using the <Directory> directive within your VirtualHost containers.

In your example it might look like this:
Code: Select all
#VirtualHost
NameVirtualHost *:80

<VirtualHost *:80>
ServerName terrapinnation.info
ServerAlias www.terrapinnation.info
DocumentRoot "C:/xammp/htdocs/terra"

<Directory "C:/xampp/htdocs/terra">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>

</VirtualHost>

As you can see I have added a few things that might help but you do not have to use them, other than the <Directory> directive of course.

I also swapped the ServerAlias as the domain name is usually the main domain and the www. is as a subdomain of the main domain.
Clue - this is also how to add more subdomains to a VirtualHost container like subdomain1.terrapinnation.info etc. etc.

BTW, I prefer to use the full directory path so if yours is different it would need to be altered of course.

More reading on the directives used can be found here.
http://httpd.apache.org/docs/2.3/mod/core.html
http://httpd.apache.org/docs/2.3/mod/di ... -dict.html
http://httpd.apache.org/docs/2.2/mod/directives.html

Just to add if you have any issues with the syntax of your httpd-vhosts.conf file and want to check it, then at a command prompt inside the xampp\apache\bin directory, issue this command:
apache -S
It will provide some useful clues.


===========================================
Take a look at the new DeskTopXampp launch control for XAMPP
and XAMPPlite (DTX.exe) posted by ridgewood:
http://community.apachefriends.org/f/viewtopi ... 967#103967
Available at Ridgewood's new DTX web site http://zedfiles.com/DTX/
Also available here: http://nat32.com/dtx/
I highly recommend DTX.
============================================
thanks a bunch izzy...i'll pass this down my chief admin,also my fiance' and co owner at terrapin nation ms jacquelyn & we'll get right on it...much obliged budd for the info..as i read,this new version is no walk in the park unlike earlier versions & well with all the excitement of apachefriends actually running on vista,its a worthwhile task...

anyways i'll let ya know how it works out & thanks again

TJ


this thread can be closed since it has been resolved..thanks go out to my dearest new friend izzy for all the help...you da best man & well, as the song states:

Sometimes The Lights All Shining On Me...Other Times I Can Barely See...Lately It Occurs To Me...What A Long Strange Trip Its Been......

:D
some rise...some fall...some climb...to get to terrapin......
terrapinnation
 
Posts: 3
Joined: 12. October 2007 13:28
Location: Winston Salem,NC


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 59 guests