How to make apache support pseudo-static and let WeChat manager run!

Source: Internet
Author: User

Many of my friends often encounter pseudo-static failure problems when building a manager. I will explain APACHE first.

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

Remind me again: This article is a solution to pseudo-static failure in building a manager for APACHE.

IIS7 pseudo static, let the butler run, please move: http://blog.csdn.net/baigelong888/article/details/21380213

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

Question 1: When the registrant registration page (also contains reg.html], the system prompts that the reg.html file cannot be found,

Question 2: domain name/houtai cannot enter the background login interface

These are caused by the failure to enable apache pseudo-static files and the failure to support the. htaccess file on the website.

Because the pseudo-static technology is used, the web server must enable the pseudo-static

Open the configuration file httpd. conf of apache in step 2.
1. Remove # In Front Of # LoadModule rewrite_module modules/mod_rewrite.so.
2. Find
#
# AllowOverride controls what directives may be placed in. htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
Change AllowOverride None to AllowOverride All.
Finally, restart the apache server to make the configuration take effect, so that the. htaccess file is supported.
1. check whether Apache supports mod_rewrite. Use the phpinfo () function provided by php to view the environment configuration. use Ctrl + F to find "Loaded Modules", which lists all Modules enabled by apache2handler, if "mod_rewrite" is included, it is supported and you do not need to set it again.
If "mod_rewrite" is not enabled, open httpd in the directory of your apache installation directory "/apache/conf. in the conf file, use Ctrl + F to find "LoadModule rewrite_module" and delete.
If not found, add "LoadModule rewrite_module modules/mod_rewrite.so" to the last row in the "LoadModule" area, and then restart the apache server.
2. Enable the apache server to support. htaccess
Modify the httpd. conf file
Options FollowSymLinks
AllowOverride None
Change
Options FollowSymLinks
AllowOverride All
Note: In addition to setting the above information, you have to set the lower part of the token (This section is not mentioned in many materials on the Internet). Otherwise, the configuration will fail, change the parameter after DocumentRoot to the directory of your local website. For example, if the root directory of your website is D:/web/www.myweb.com, set it to DocumentRoot "D: /web/www.myweb.com ", that is, modifying the current directory
After this step is set, restart the apache server to take effect.

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.