Apache access to the root directory configuration scope related data _linux

Source: Internet
Author: User
Tags one more line file permissions

My site has a feature such as www.abc.com corresponding to the directory is AAA also has a website directory for www.123.com to BBB

But it takes a colleague in Www.abc.com's last file to www.123.com to generate the same file. But the original set is problematic, spread up.

Find ideas:

1, File permissions issues
2, access to the owner

Two all checked out found all no problem, depressed, and finally think of the site alone, the problem of the configuration file, so open www.abc.com corresponding Apache configuration file:

Copy Code code as follows:

<virtualhost *:80>
Documentroot/www/web/system/aaa/public_html
ServerName www.abc.com
DirectoryIndex index.php
ErrorDocument 400/errpage/400.html
ErrorDocument 403/errpage/403.html
ErrorDocument 404/errpage/404.html
ErrorDocument 405/errpage/405.html
Php_admin_value open_basedir/www/web/system/aaa:/tmp
<ifmodule mod_deflate.c>
Deflatecompressionlevel 7
Addoutputfilterbytype DEFLATE text/html text/plain text/xml application/x-httpd-php
Addoutputfilter DEFLATE css js html htm gif jpg png bmp PHP
</IfModule>
</VirtualHost>
<Directory/www/web/system/aaa>
Options FollowSymLinks
AllowOverride All
Order Allow,deny
Allow from all
</Directory>

Found one more line, looked at the Php_admin_value Open_basedir This plainly is set scope. You can fix the problem by setting it here.

To set the method:

You can list the allowed directories after/tmp:/** can also change the previous directory to go up the previous level.

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.