Enable Mod_rewrite module
Found in the httpd.conf file in the Conf directory
LoadModule Rewrite_module modules/mod_rewrite.so
Remove the # in front of this line.
2. Enable the Options followsymlinks and allowoverride all in directories to support URL Rewirte
alias/php "c:/web/php/"
Copy Code code as follows:
<directory "c:/web/php/" >
Options Indexes FollowSymLinks
AllowOverride All
Order Allow,deny
Allow from all
</Directory>
When this is accessed through http://localhost:8080/php/, the/php/and the subdirectories underneath it will support URL rewrite.
PostScript: php100.com
Many articles on the Web do not mention using Options followsymlinks, because in httpd.conf there are
Copy Code code as follows:
<directory/>
Options FollowSymLinks
AllowOverride None
Order Deny,allow
Deny from all
Satisfy All
</Directory>
This way, if your site is configured to be accessed through http://localhost:8080/, you will not notice the effect of the options followsymlinks, just change allowoverride none to allowoverride All can be. And I am accustomed to in this machine configuration into http://localhost:8080/php/, forget to add options Indexes FollowSymLinks will not succeed, would show
Forbidden
You don ' t have permission to access/php/f2blog/on this server.
Such a mistake. Later, I found the reason in the Apache document.
Note:to enable the rewriting engine for per-directory configuration files you need to set ' "Rewriteengine on" in these F Iles and ' Options followsymlinks ' must be enabled. If your administrator has disabled override of FollowSymLinks for a user's directory, then you cannot use the rewriting EN Gine. This restriction is needed to security reasons.
In fact, Mod_rewrite is directory-specific, so it is not necessary to change all allowoverride in httpd.conf to allowoverride all,options.
BTW: It seems to be the first to look at the documentation provided by the program, but I almost read the documentation for TOMCAT5.0.28, and I don't see whether it's possible to install successful services through Service.bat on Windows. But see n many people and I have the same doubt but no answer, well, I certainly know that through Tomcatxx.exe can install the successful Tomcat service, it seems that this is the only way.