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

How to implement jump function through apache

步履不停
Release: 2019-07-26 09:50:40
Original
3654 people have browsed it

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template