Cant Find Virtual Host ?

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

Cant Find Virtual Host ?

Postby deltakitt » 11. October 2006 01:50

Hello all im new to this so please bear with me. i have 1 IP and im looking to host 3 web sites on e server. my problum is i cant cant find the virtural host in my Conf file. under apache. is something i must put in ??
deltakitt
 
Posts: 10
Joined: 11. October 2006 01:37
Location: Port Jefferson, New York

Postby anwoke8204 » 11. October 2006 05:42

look under the apache\config\extra for the file httpd-vhosts.conf
anwoke8204
 
Posts: 47
Joined: 23. September 2006 02:16

Postby Izzy » 11. October 2006 08:03

There are many recent post about this subject and reading them first before you attempt to create virtual hosts will help enormously and will also spead up your progress.
Search the Xampp for English forums for your given subject.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby deltakitt » 12. October 2006 04:04

ok thanks
deltakitt
 
Posts: 10
Joined: 11. October 2006 01:37
Location: Port Jefferson, New York

Postby Izzy » 12. October 2006 04:43

After having a go to create your vhosts you get stuck or things don't go right post back with as much detail as you can then we can take a look at it for you.
Good Luck!
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

ok I think it is set up this way ??

Postby deltakitt » 12. October 2006 18:45

This was all done in the extra.conf file. do i have to past it in the httpd.conf file? i really new to apache and i really dont understand to much of codeing . im thankfull for all of your help

im also willing to let you remote in if need be


Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
##NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#

common
<VirtualHost *:81>
DocumentRoot e:\new\xampp\htdocs\faweb
ServerName www.fallenanjel.com
# Other directives here



</VirtualHost>

<VirtualHost *:80>
DocumentRoot e:\new\xampp\htdocs
ServerName www.wilsonritch432.com
deltakitt
 
Posts: 10
Joined: 11. October 2006 01:37
Location: Port Jefferson, New York

Postby Izzy » 13. October 2006 01:39

I will try and put together a httpd-vhosts.conf file from the info you have provided above.
You will have to replace the incorrect info or missing info I have missed.

If you post all the info required I can be much more accurate.

Not sure why you want to be on port 81 in one of your containers but you can edit what I put for your own needs. Remember that if you use a different port number than port 80 then the address must always use that port as part of the address. Example:
http://www.fallenanjel.com:81

Use a seperate folder/directory for each of your domain names makes it less complicated to manage and easier to control. Add a directory for the domain I have highlighted in red below.

Remember to back up your original conf files before editing.
You will have to stop then restart Apache after any editing so the changes can be read by the server.

This is the httpd-vhosts.conf file that goes in the directory xampp\apache\conf\extra\
Copy and paste this into your text editor then save as httpd-vhosts.conf in the xampp\apache\conf\extra\ directory after making any changes you feel are required.

If things don't work as they are then post back with the problem and paste the conf file again.
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
##NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
##<VirtualHost *:80>
## ServerAdmin webmaster@dummy-host.example.com
## DocumentRoot /www/docs/dummy-host.example.com
## ServerName dummy-host.example.com
## ServerAlias www.dummy-host.example.com
## ErrorLog @rel_logfiledir@/dummy-host.example.com-error_log
## CustomLog @rel_logfiledir@/dummy-host.example.com-access_log common
##</VirtualHost>

##<VirtualHost *:80>
## ServerAdmin webmaster@dummy-host2.example.com
## DocumentRoot /www/docs/dummy-host2.example.com
## ServerName dummy-host2.example.com
## ErrorLog @rel_logfiledir@/dummy-host2.example.com-error_log
## CustomLog @rel_logfiledir@/dummy-host2.example.com-access_log common
##</VirtualHost>

<VirtualHost 127.0.0.1:80>
ServerName localhost
DocumentRoot "E:/new/xampp/htdocs"
</VirtualHost>

NameVirtualHost *:80

<VirtualHost *:80>
ServerName fallenanjel.com
ServerAlias www.fallenanjel.com
DocumentRoot "E:/new/xampp/htdocs/faweb"
ServerAdmin serveradmin@fallenanjel.com
<Directory "E:/new/xampp/htdocs/faweb" >
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

<VirtualHost *:80>
ServerName wilsonritch432.com
ServerAlias www.wilsonritch432.com
DocumentRoot "E:/new/xampp/htdocs/(put your wilsonritch432 site directory name in here)"
ServerAdmin serveradmin@wilsonritch432.com
<Directory "E:/new/xampp/htdocs/(put your wilsonritch432 site directory name in here)" >
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

thanks

Postby deltakitt » 13. October 2006 02:48

thank you for being so patient with me
deltakitt
 
Posts: 10
Joined: 11. October 2006 01:37
Location: Port Jefferson, New York


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 123 guests