Apache22 address forwarding configuration instructions:
Step 1: Load The mod_vhost_alias module.
Remove the # Before loadmodule vhost_alias_module modules/mod_vhost_alias.so in httpd. conf and httpd. Default. conf.
Step 2: Modify the virtualhost under the httpd. conf file.
Add an ifmodule
<Virtualhost *: 80>
Serveradmin server @????. Com
DocumentRoot/usr/local/www/apache22/data/
Servername www .????. Com
Serveralias ????. Com
UseCanonicalName off
Errorlog/var/log/dummy-www .????. Com-error_log
Customlog/var/log/dummy-www .????. Com-access_log common
<Ifmodule mode_rewrite.c>
Rewriteengine on
Rewritecond % {http_host} ^ group /.???? /. Com // * $
Rewritecond % {request_uri }! ^ (/Index/. php |/index/. html |/index/. htm)
Rewriterule ^/(. [a-zA-Z0-9 _] +) $ http: // www .????. COM/test. php? Id = $1 [l]
Rewritecond % {http_host} ^ user /.???? /. Com // * $
Rewritecond % {request_uri }! ^ (/Index/. php |/index/. html |/index/. htm)
Rewriterule ^/(. [a-zA-Z0-9 _] +) $ http: // www .????. COM/test1.php? Userid = $1 [l]
</Ifmodule>
</Virtualhost>
Step 3: Modify virtualdocumentroot and point to the folder directory
Modify the content in parentheses following {request_uri}. If the root directory contains this file or folder, write it.
Restart Apache.