Web Service 403 Error Summary

Source: Internet
Author: User

200-ok , the server successfully returned to the Web page

-standard response for successful httprequests.

301-movedpermanently (Permanent jump), the requested page has been permanently redirected to the new location.

Requests should bedirected to the given.

403-forbidden (no access) , Server denied request

-Forbiddenrequest (matches a deny filter) = HTTP 403

-The Requestwas a legal request, but the server was refusing to respond to it.

404-not Found, the server could not find the requested page.

-The requested resource could is not being foundbut may is available again in the future.

500-internalserver Error (internal server error)

-Internal Error in Haproxy = HTTP 500

-A generic error message, given when NoMore specific message is suitable.

502-bad Gateway (Bad Gateway) , Typically, when a gateway server requests a backend service, the backend service does not follow http The protocol returns the result correctly.

-the server returned an invalid orincomplete response = HTTP 502

-The server is acting as a gateway Orproxy and received an invalid response from the upstream server.

503-serviceunavailable (service is not currently available) , may be due to overloading or downtime maintenance.

-No server was available to handle therequest = HTTP 503

-The server is currently unavailable (because it was overloaded or down for maintenance).

504-gatewaytimeout (Gateway timed out) , Typically, when a gateway server requests a backend service, the backend service does not complete the service in a specific time period.

-The server failed to reply in time =>http 504

-The server is acting as a gateway or proxy and didnot receive a timely response from the upstream server.


cause 1 :

Apache does not have permissions to the site directory in the configuration file, which is typically the initial installation Apache , you change the default Apache Site Directory caused;

<directory "/application/apache2.2.26/htdocs" >

Options Indexes FollowSymLinks

AllowOverride None

Order Allow,deny

Allow from all

</Directory>

<directory "/var/blog/" >

Options FollowSymLinks

AllowOverride None

Order Allow,deny

Allow from all

</Directory>

this can be in httpd-vhosts.conf Configuration , the master configuration file is the global configuration;


cause 2 :

there is no home file under the Site directory ( index apache Span style= "font-size:20px;font-family: ' The song Body '; The configuration also disables directory browsing, prompting 403 error;

is to Options Indexesfollowsymlinks in some Indexes file, and then the site directory is not index.html The directory results in the Site directory will be displayed on the browser, if the index is forbidden Indexes , it will be reported 403 errors;


reason three: Still Directory Permissions Issues:

<directory "/application/apache2.2.26/htdocs" >

Options Indexes FollowSymLinks

AllowOverride None

Order Allow,deny

Allow from all

Allow from 10.0.0.0/24

Deny from 192.168.0.0/24

</Directory>


Reason four: Site Directory permissions issues;

The Site Directory needs to have Apache users have access, otherwise they will be reported 403 errors;

[[email protected]] #ll/var/blog/

Total 6968

-rw-r--r--1 Ettett 54724 June expires.jpg

-rw-r--r--1 Ettett 54724 June Expires.jpg.1

-rw-r--r--1 Ettett 23:01 index.html

-rw-r--r--1 Ettett 418 Sep 08:18 index.php

-rw-r--r--1 Ettett 19929 Jan license.txt

-rw-r--r--1 Ettett 6586 Dec 15:26 readme.html

-rw-r--r--1 Ettett 18:30 test_mysql.php

Drwxr-xr-x 2 Ettett 4096 Dec 18:53 WordPress

[[email protected]] #egrep "user| Group "httpd.conf

# user/group:thename (or #number) of the User/group to run httpd as.

User ett

Group ett

Logformat "%h%l%u%t \"%r\ "%>s%b \"%{referer}i\ "\"%{user-agent}i\ "" combined

Logformat "%h%l%u%t \"%r\ "%>s%b \"%{referer}i\ "\"%{user-agent}i\ "%I%O" Combinedio

# User Homedirectories

[[email protected]] #pwd

/application/apache/conf


This article is from "Try to be brave" blog, declined reprint!

Web Service 403 Error Summary

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.