viewtopic.php?f=16&t=47306
Thanks for the help
When I was at my college in school i did not seem to be having issues. Now I have forwarded port 80 on my router and my virtual host file was not working even for my own computer at first.
When i would visit http://www.dev2.voobly.com I would get a blank screen. Now it seems to be working after a few days.
There still seems to be a problem, when external computers try to access it the server thinks they are trying to access /xampp and say no.
How can i fix this re-direct/problem?
- Code: Select all
#
# 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 127.0.0.1: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 postmaster@dummy-host.localhost
##DocumentRoot "C:/xampp/htdocs/dummy-host.localhost"
##ServerName dummy-host.localhost
##ServerAlias www.dummy-host.localhost
##ErrorLog "logs/dummy-host.localhost-error.log"
##CustomLog "logs/dummy-host.localhost-access.log" combined
##</VirtualHost>
##<VirtualHost *:80>
##ServerAdmin postmaster@dummy-host2.localhost
##DocumentRoot "C:/xampp/htdocs/dummy-host2.localhost"
##ServerName dummy-host2.localhost
##ServerAlias www.dummy-host2.localhost
##ErrorLog "logs/dummy-host2.localhost-error.log"
##CustomLog "logs/dummy-host2.localhost-access.log" combined
##</VirtualHost>
#NameVirtualHost 127.0.0.1:80
#<VirtualHost 127.0.0.1:80>
# DocumentRoot C:/xampp/htdocs/ # change this line with your htdocs folder
# ServerName localhost
#</VirtualHost>
#<VirtualHost 127.0.0.1:80>
# ServerAdmin webmaster@localhost
# DocumentRoot C:/xampp/htdocs
# ServerName testproject
# <Directory "C:/xampp/htdocs">
# Options Indexes FollowSymLinks Includes ExecCGI
# AllowOverride All
# Order allow,deny
# Allow from all
# </Directory>
#</VirtualHost>
<VirtualHost www.dev2.voobly.com>
DocumentRoot "C:/xampp/htdocs/voobly/public_html"
ServerName www.dev2.voobly.com
ServerAlias www.dev2.voobly.com
CustomLog "C:/xampp/htdocs/voobly/public_html/www.dev2.voobly.com-access_log" combined
ErrorLog "C:/xampp/htdocs/voobly/public_html/www.dev2.voobly.com-error_log"
<Directory "C:/xampp/htdocs/voobly/public_html">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>