Home  >  Article  >  Operation and Maintenance  >  How to implement jump function through apache

How to implement jump function through apache

步履不停
步履不停Original
2019-06-29 11:28:543627browse

How to implement jump function through apache

1. First, confirm that the httpd service of your server is enabled normally. The following uses centos 7.0 as an example.

How to implement jump function through apache

2. Edit Apache's configuration file, vi /etc/httpd/conf/httpd.conf

can add the following rules to the last line:

RewriteEngine On
RewriteRule ^/(.*) http://www.qq.com/ [R,L]
IncludeOptional conf.d/*.conf

3, exit and save, and restart httpd service

How to implement jump function through apache

#4, then enter the elastic IP address where the service is located, and press Enter to jump to the desired website.

How to implement jump function through apache

For more technical articles related to Apache, please visit the Apache Tutorial column to learn!

The above is the detailed content of How to implement jump function through apache. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn