Xampp (mod plz move if this is in the wrong place)

smoochy boys on tour

GOMEEE

LOMCN Veteran
Veteran
Mar 5, 2009
259
0
42
Been at this for hours and i am stuck ¬¬

Here is what i have in my httpd-vhosts.conf file.

Code:
NameVirtualHost *:80


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

<VirtualHost *:80>
    DocumentRoot "D:/webserver/test"
    ServerName test.localhost

    <Directory "D:/webserver/test">
        Options Indexes FollowSymLinks Includes ExecCGI
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>
i have added all the bits into the windows hosts file aswell.

restarted both computer and xampp several times.

and all i seem to be getting is the following...

Code:
Access forbidden!

You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.

If you think this is a server error, please contact the webmaster.
Error 403
test.localhost
16/05/2010 01:15:42
Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1
anyone give me some idea on how to fix this prob?

i have checked the folders... and all is right... there is index files, none are read protected. its just being a pain in the backside.


Thanks Torni xx
 

GOMEEE

LOMCN Veteran
Veteran
Mar 5, 2009
259
0
42
sorry no its working fine with localhost.

but i get that error when i try a local virtual domain

the documents would be layed out the same with WAMP. i just cant figure out wth is wrong :(
 

Alecs

SPQR
VIP
Jan 10, 2009
3,314
3
1,199
380
Europa
Try this:

Code:
#localhost
<VirtualHost *:80>
    ServerAdmin you@localhost
    DocumentRoot "C:/Xampp/xampp/htdocs"
    ServerName localhost:80
    ErrorLog "logs/localhost-error_log"
    CustomLog "logs/localhost-access_log" common
</VirtualHost>

#virtualdomain
<VirtualHost *:80>
    ServerAdmin you@virtualdomain
    DocumentRoot "D:/virtualdomain"
    ServerName virtualdomain
    ServerAlias virtualdomain
    ErrorLog "logs/virtualdomain-error_log"
    CustomLog "logs/virtualdomain-access_log" common
</VirtualHost>
 
Last edited:

GOMEEE

LOMCN Veteran
Veteran
Mar 5, 2009
259
0
42
well thats dome something more than it was...

but its always pointing to the htdocs file :(
 

Alecs

SPQR
VIP
Jan 10, 2009
3,314
3
1,199
380
Europa
In your httpd.conf replace

# Virtual hosts
#Include conf/extra/httpd-vhosts.conf


For

# Virtual hosts
Include conf/extra/httpd-vhosts.conf
 

Alecs

SPQR
VIP
Jan 10, 2009
3,314
3
1,199
380
Europa
I tried it and neither works for me.

I'll take a look at this when i finish my exams.
 

GOMEEE

LOMCN Veteran
Veteran
Mar 5, 2009
259
0
42
ok i figured out y it was pointing to the same place...

i had

NameVirtualHost 127.0.0.1:80

then

<VirtualHost *:80>

which seems to make a difference...

its just back to having that bloody error again now ¬¬

thnx alecs
 

GOMEEE

LOMCN Veteran
Veteran
Mar 5, 2009
259
0
42
wooo got it working at long last :D

no idea what i done lol... but its doing it ;)

Code:
NameVirtualHost 127.0.0.1:80


<VirtualHost 127.0.0.1:80>
	ServerAdmin you@localhost
	DocumentRoot "C:/Xampp/xampp/htdocs"
	ServerName localhost:80
	ErrorLog logs/localhost-error_log
	CustomLog logs/localhost-access_log combined
</VirtualHost>

<VirtualHost 127.0.0.1:80>
	ServerAdmin you@virtualdomain
	DocumentRoot D:\WebServer\test
	ServerName trialsite:80
	ServerAlias trialsite
	ErrorLog logs/trialsite-error_log
	CustomLog logs/trialsite-access_log combined

	<Directory "D:\WebServer\test">
		Options Indexes FollowSymLinks Includes ExecCGI
		AllowOverride All
		Order allow,deny
		Allow from all
	</Directory>
</VirtualHost>