403 Forbidden Error On Localhost
Contents |
1 Topic closed #1 2009-10-29 06:01:44 iopo Member Registered: 2009-10-26 Posts: 31 [SOLVED] Apache Access forbidden Error 403 localhost Hello,I believe this should be some thing very stupid, but I can't find it... so here I am.I have just installed apache
Localhost 403 Forbidden Wamp
(# pacman -S apache)Configured httpd.comf, and created 2 virtual hosts with extra/httpd-vhosts.confWhen I believed localhost 403 forbidden ubuntu every thing was ok, I have started Apache as root (# apachectl start)Started ok, no errors (also tried start it as localhost 403 forbidden mac user with sudo, and /etc/init.d/httpd start)So when I go to http://localhos (or the virtual host) I allways get Access forbidden Error 403I have set 777 permissions to /srv/http and the virtual host (/home/username/local-web/site1.dev)I have tried
Wamp Server Localhost 403 Forbidden
every thing , changed dir owners to "http:http" ...At the Apache error log I get: "[Thu Oct 29 02:39:48 2009] [error] [client 127.0.0.1] (13)Permission denied: access to / denied" There is a very simple plain index.html file at /srv/http and the virtual host, all file/dir permissions very permisive... so that can't be the problem.Am I missing some thing? Do I need to manually create the "http" user and/or add it
Xampp 403 Forbidden
to some group? Last edited by iopo (2009-10-29 22:06:59) Offline #2 2009-10-29 08:20:04 wuischke Member From: Suisse Romande Registered: 2007-01-06 Posts: 630 Re: [SOLVED] Apache Access forbidden Error 403 localhost Please check your http.conf and see if "Options Indexes" is set for your apache root to allow directory listings. Offline #3 2009-10-29 08:31:03 iopo Member Registered: 2009-10-26 Posts: 31 Re: [SOLVED] Apache Access forbidden Error 403 localhost Yes, I have set Options Indexes "All" to /srv/httpDocumentRoot "/srv/http"....
here for a quick overview of the site Help Center Detailed answers to apache 403 forbidden any questions you might have Meta Discuss the workings and
Iis 403 Forbidden
policies of this site About Us Learn more about Stack Overflow the company Business Learn localhost forbidden wamp more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow https://bbs.archlinux.org/viewtopic.php?id=83481 Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up 403 Forbidden error when accessing localhost on Mac OS X10.8 up vote 7 down vote favorite 3 I have followed this tutorial to set up Apache, http://stackoverflow.com/questions/18750184/403-forbidden-error-when-accessing-localhost-on-mac-os-x10-8 MySql and PHP on Mac OS X 10.8 (http://coolestguyplanettech.com/downtown/install-and-configure-apache-mysql-php-and-phpmyadmin-osx-108-mountain-lion) When I go to 'Localhost' I get the following error: Forbidden You don't have permission to access / on this server. When I go to 'Localhost/~benthompson' it works fine. When I was halfway through the tutorial, 'Localhost' did work, its something later on that stopped it working. Presumably its a permissions issue, but where? apache permissions osx-mountain-lion share|improve this question asked Sep 11 '13 at 20:01 Ben Thompson 1,27152138 add a comment| 1 Answer 1 active oldest votes up vote 27 down vote accepted To fix that issue check this link http://www.coolestguidesontheplanet.com/downtown/how-set-virtual-hosts-apache-mac-osx-109-mavericks-and-osx-108-mountain-lion read the "Losing Localhost" part. The error occurs just after you enable vhosts in the httpd.conf file. By uncommenting this line: Include /private/etc/apache2/extra/httpd-vhosts.conf Adding this in the httpd-vhosts.conf will fix your issue. Just remember to add new vhosts before this one :D here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn http://superuser.com/questions/68857/403-forbidden-error-when-trying-to-view-localhost-on-apache more about hiring developers or posting ads with us Super User Questions Tags Users Badges http://www.cyberciti.biz/faq/apache-403-forbidden-error-and-solution/ Unanswered Ask Question _ Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top 403 Forbidden Error when trying to view localhost on Apache up 403 forbidden vote 4 down vote favorite 3 I think my Apache must be all screwed up. I don't know if it ever worked. I just upgraded to Snow Leopard, and the first step on this tutorial is to start apache and check that it's working by opening http://localhost. It starts fine but when I go to localhost I get a 403 forbidden error. I don't know where to start figuring out how to fix it, so I wonder localhost 403 forbidden if a fresh install of Apache would do the trick. What do you think? Update: I found some error logs in /private/var/log/apache2/. Found this in one of the logs. Not sure what it means: [Tue Nov 10 17:53:08 2009] [notice] caught SIGTERM, shutting down [Tue Nov 10 21:49:17 2009] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] Warning: DocumentRoot [/usr/docs/dummy-host.example.com] does not exist Warning: DocumentRoot [/usr/docs/dummy-host2.example.com] does not exist httpd: Could not reliably determine the server's fully qualified domain name, using Andrews-Mac-Pro.local for ServerName mod_bonjour: Skipping user 'andrew' - cannot read index file '/Users/andrew/Sites/index.html'. [Tue Nov 10 21:49:19 2009] [notice] Digest: generating secret for digest authentication ... [Tue Nov 10 21:49:19 2009] [notice] Digest: done [Tue Nov 10 21:49:19 2009] [notice] Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 configured -- resuming normal operations Update: I also found something in the dummy-host.example.com-error_log file. I didn't set these dummy-host things by the way. Is this the default configuration? [Tue Nov 10 21:59:57 2009] [error] [client ::1] client denied by server configuration: /usr/docs Update: Woohoo! I found the file that had the virtual host definitions. It was in /etc/apache2/extra/httpd-vhosts.conf. It had those two dummy virtual host settings in there. I added a localhost virtual host. Not sure if this is necessary, but since it wasn't working before, decided to do it anyway. After removing the old virtual hosts, adding my ne Debian / Ubuntu, FreeBSD, Linux, Networking, Openbsd, RedHat and Friends, Solaris-Unix, Suse, Troubleshooting, Ubuntu LinuxI have successfully configured Apache web server for my client. But why does my clients website just say "Error 403 Forbidden"? For example when client send request http://myclient.com/something/ Apache generate a 403 error. How do I troubleshoot this problem? Error code that start with 4xx is generated because of client browser request. A 403 error code means client browser (or person who is trying to access your site) cannot access the requested URL. It can be caused by many reason: