The error 403 occurs during apache access. The configuration is provided.

Source: Internet
Author: User
Tags 403 forbidden error
The error 403 occurs during apache access. The configuration is provided. -- Linux Enterprise Application-Linux server application information. For details, refer to the following section. Log on as a root user
1. Create a folder weband index.htm under/home/media /.

Mkdir-p/home/media/web

2. modify the configuration in httpd. conf.

NameVirtualHost 21.244.23.22

ServerAdmin root@admin.com
DocumnetRoot/home/media/web
ServerName www.media.cn
...................


3. In selinux/conf, I have set it to disabled.

4. You have run iptables-F.

5. Run chmod 777/home/media/web successfully.

6. Run: chown apache/home/media/web

7. DirectoryIndex index.htm index.html index. php index.html. var

8. Order allow, deny Deny from all



But there are still problems:
1. An error occurs when the apache service is restarted:
Starting httpd: Warning: DocumentRoot [/home/media/web] does not exit [OK]

2. The error code is displayed when you access www.meida.cn/index.htm.

Forbidden
You don't have permission to access/index.htm on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/2.0.52 (Red Hat) Server at www.media.cn Port 80

3. The default apache server page appears when I access www.media.cn.


Please help me see where the problem occurs.

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.