Page 1 of 2

what is happening ?

PostPosted: 29. March 2006 01:04
by sa3bin
:D

PostPosted: 29. March 2006 01:43
by cj_nza
in your URL

You ask for a resource on host sa3bin.zapto.org, but in your Apache setup you tell Apache that it only needs to deal with a virtual host called "localhost". It doesn't know what to do with a name based request for sa3bin.zapto.org

Change the name of you server to the name that you want Apache to handle eg sa3bin.zapto.org

ok, did that

PostPosted: 29. March 2006 01:52
by sa3bin
:D

PostPosted: 29. March 2006 01:53
by Wiedmann
cj_nza wrote:Change the name of you server to the name that you want Apache to handle eg sa3bin.zapto.org

That's not the problem, because it's the only and first VHost and so the default server that catch all 'unknown' requests.

sa3bin wrote:DocumentRoot C:/xampp/www/sa3bin/

You need a "<Directory>" block with an "allow" directive for this directory also.

BTW:
You should add the port to the ServerName.

excuse me

PostPosted: 29. March 2006 01:57
by sa3bin
:D

keep localhost then

PostPosted: 29. March 2006 01:59
by sa3bin
:D

PostPosted: 29. March 2006 02:02
by Wiedmann
First one question:
Why did you setup a VHost?

uhm

PostPosted: 29. March 2006 02:04
by sa3bin
lol, because i was told to in a forum? from here i believe?? http://xampptutorials.com/news.php

PostPosted: 29. March 2006 02:07
by Wiedmann
because i was told to in a forum?

I don't kwnow what they told you...

The question is:
What do you want? (Is there really a need for a VHost)?

?

PostPosted: 29. March 2006 02:31
by sa3bin
:D

hello

PostPosted: 29. March 2006 05:28
by sa3bin
:D

PostPosted: 29. March 2006 09:08
by WorldDrknss
Create the following Folders in C:/xampp/www/sa3bin:
logs
error
cgi-bin
error_pages
Create the following files in C:/xampp/www/sa3bin:
.htaccess

in your httpd-vhosts.conf replace your old virtualhost with this one:

<VirtualHost *:80>
ServerName sa3bin.zapto.org
ServerAdmin sa3bin@sa3bin.zapto.org
ServerAlias www.sa3bin.zapto.org
DocumentRoot /xampp/www/sa3bin
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/xampp/www/sa3bin">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Directory "/xampp/www/sa3bin">
Options Includes
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddHandler server-parsed .html .htm .shtml .shtm
</Directory>
HostnameLookups Off
ErrorLog /xampp/www/sa3bin/logs/error_log.txt
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog /xampp/www/sa3bin/logs/access_log.txt combined
ServerSignature On
ScriptAlias /cgi-bin/ "/xampp/www/sa3bin/cgi-bin/"
<Directory "/xampp/www/sa3bin/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
DirectoryIndex index.php index.html index.htm index.shtml index.shtm
ErrorDocument 400 /error_pages/400.html
ErrorDocument 403 /error_pages/403.html
ErrorDocument 404 /error_pages/404.html
AccessFileName .htaccess
AddHandler cgi-script .cgi
<IfModule mod_negotiation.so>
<IfModule mod_include.so>
Alias /error/ "/xampp/www/sa3bin/error/"
<Directory "/xampp/www/sa3bin/error">
AllowOverride None
Options IncludesNoExec
AddHandler type-map var
Order allow,deny
Allow from all
LanguagePriority en
</Directory>
</IfModule>
</IfModule>
</VirtualHost>

<VirtualHost *:80>
ServerName localhost
DocumentRoot /xampp/htdocs
</VirtualHost>

http://xampptutorials.com

did that

PostPosted: 29. March 2006 11:29
by sa3bin
:D

PostPosted: 29. March 2006 11:40
by Wiedmann
need a place to host sa3bin.com ! is what i need.isnt there a need for Vhost????

You want serv only one website?

FOR NOW YES !

PostPosted: 29. March 2006 11:42
by sa3bin
:D