Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: 403 Forbidden, again, and again, and agian |
|
Author |
|
jd333326
Joined: 18 Dec 2006 Posts: 3
|
Posted: Mon 18 Dec '06 2:26 Post subject: 403 Forbidden, again, and again, and agian |
|
|
I have sunk well over 40 hours into trying to learn how to do this. I have read and reread websites and the manual, taken notes, spread it out over time...the works! I just cant figure it out, can anyone please tell what I'm not getting.
I'm trying to use for local testing so port:8080
I get:
403 Forbidden
You don't have permission to access /www.mysite.com/ on this server.
www.mysite.com obviously ficticious
When I try:
http://127.0.0.1:8080/www.mysite.com/
or
http://127.0.0.1:8080/www.mysite.com/index.htm
I have been working from the Local System account because Apache wont boot when I use my apache user account (see end for the way I did this).
I also can't run the server in the console window
These are the changes I have made based on information i stitched together from google, and the apache manual.
http.config
Listen *:8080
ServerRoot "/www/Apache22"
DocumentRoot "/www/webroot"
ServerName localhost:8080
ServerAdmin admin@localhost
added,
Include conf/virtual-hosts.conf
in the virtual hosts file,
# Use name-based virtual hosting.
NameVirtualHost *:8080
<VirtualHost *:8080>
ServerName mysite.com
DocumentRoot "C:/Documents and Settings/Owner/My Documents/MySite/My Sites/mysite.com/site/web"
CustomLog logs/mysite.com.access.log combined
ErrorLog logs/mysite.com.error.log
</VirtualHost>
In the document root of mysite.com there is an,
index.htm
In XP I Have,
C:\WINDOWS\system32\drivers\etc\host
127.0.0.1 localhost
127.0.0.1 waubna.com # My personal site
For testing purposes I have allowed full control to all my accounts (and tried all of them without success)
Via MMC
I have created an apache, named apache, account and granted it “Log on as Service” as well as “act as part of operating system”. apahce wont boot here
ps. i've tried multiple combinations in my http. config file |
|
Back to top |
|
pips
Joined: 03 May 2006 Posts: 65 Location: Manchester, UK
|
Posted: Mon 18 Dec '06 3:23 Post subject: |
|
|
You shouldn't be specifying in the address line the www.mysite.com as well as the 127.0.0.1:8080 !
in your hosts file, add an entry:-
127.0.0.1 www.mysite.com
in the address bar simply type: http://www.mysite.com:8080
Cheers,
Phil |
|
Back to top |
|
jd333326
Joined: 18 Dec 2006 Posts: 3
|
Posted: Mon 18 Dec '06 16:38 Post subject: |
|
|
Pips,
first, thank you for your help.
I have tried your suggested solution with no success.
I changed, C:\WINDOWS\system32\drivers\etc\host:
from,
127.0.0.1 mysite.com # My personal site
to,
127.0.0.1 www.mysite.com # My personal site
Also changed, virtual-hosts.conf
from,
ServerName mysite.com
to,
ServerName www.mysite.com
I've tried also all possible variations of changing host, virtual-host, and changing both ( which is what is in the files now.) I even changed the host.BAK for kicks!
I am now using the correct URL, http://www.mysite.com:8080
the 403 Error has changed from,
403 Forbidden
You don't have permission to access /www.mysite.com/ on this server.
to,
Forbidden
You don't have permission to access / on this server. |
|
Back to top |
|
Panda
Joined: 16 Dec 2006 Posts: 16
|
Posted: Mon 18 Dec '06 19:46 Post subject: |
|
|
Try this:
ServerName www.mysite.com:8080
Listen 8080
also add this to virtual host directory:
Options Indexes FollowSymLinks MultiViews ExecCGI |
|
Back to top |
|
jd333326
Joined: 18 Dec 2006 Posts: 3
|
Posted: Tue 19 Dec '06 18:38 Post subject: |
|
|
I changed: virtual-hosts.conf,
ServerName www.mysite.com
to,
ServerName www.mysite.com:8080
Also changed: virtual-hosts.conf to,
NameVirtualHost *:8080
<VirtualHost *:8080>
Options Indexes FollowSymLinks MultiViews ExecCGI
ServerName www.mysite.com:8080
DocumentRoot "C:/Documents and Settings/Owner/My Documents/MySite/My Sites/mysite.com/site/web"
CustomLog logs/mysite.com.access.log combined
ErrorLog logs/mysite.com.error.log
</VirtualHost>
I'm not sure if this was the right place to place:
Options Indexes FollowSymLinks MultiViews ExecCGI.
I still get the 403 with / (directory access?)
I read, but cant say that i completely follow everthing in the
Options (.....etc) code.
newbee (?'s)
should I amend http.conf:
# Virtual hosts
#Include conf/extra/httpd-vhosts.conf
even though I,
Include conf/virtual-hosts.conf ?
and
Apache is installed,
c:\www rather than c:\Program Files
does this make a difference?
still learning to crawl, thanks for help in advance |
|
Back to top |
|
|
|
|
|
|