I Guess You Can Help Me

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

I Guess You Can Help Me

Postby oleg233 » 01. June 2011 05:49

my website doesn't work for others but for yes and when i write my ip address it work for both sides
http-vhost file:
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 *:80
NameVirtualHost *:443

#
# 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>
  DocumentRoot htdocs\8ball
  ServerName www.8ball.co.il
</VirtualHost>

<Directory htdocs\8ball>
    Order allow,deny
    Allow from all
</Directory>

and check this out:
http://46.120.48.175/
oleg233
 
Posts: 1
Joined: 01. June 2011 05:43

Re: I Guess You Can Help Me

Postby Nobbie » 01. June 2011 09:38

oleg233 wrote:my website doesn't work for others but for yes and when i write my ip address it work for both sides


??
Nobbie
 
Posts: 8780
Joined: 09. March 2008 13:04

Re: I Guess You Can Help Me

Postby ChaosX » 01. June 2011 12:54

My VHost containers look like this ...
Code: Select all
<VirtualHost *:80>
ServerName domain.com
ServerAlias www.domain.com *.domain.com
DocumentRoot "C:/xampp/htdocs/domain.com"
    <Directory "C:/xampp/htdocs/domain.com" >
   Options Indexes +FollowSymLinks Includes ExecCGI
   AllowOverride All
   Order allow,deny
   Allow from all
    </Directory>
ScriptAlias /cgi-bin/ "C:/xampp/htdocs/domain.com/cgi-bin/"
ServerAdmin MyEmail@yahoo.com
CustomLog logs/domain.com.log combined
ErrorLog logs/domain.com_error.log
LogLevel error
</VirtualHost>
... maybe looking over mine will show you whats wrong with yours ... off the top of my head you need to put your <Directory> listing before you close out </VirtualHost>
ChaosX
 
Posts: 4
Joined: 29. November 2009 00:40


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 42 guests