Apache Alias 指令 完成URL映射
Apache is an open source web server that’s available for Linux servers free of charge.
首先,判断确定自己的OS版本,根据版本下载安装Apache,我的是Ubuntu Server:
https://ubuntu.com/tutorials/install-and-configure-apache#1-overview
What you’ll need
- Ubuntu Server 16.04 LTS
- Secure Shell (SSH) access to your server
- Basic Linux command line knowledge
安装:
sudo apt update
sudo apt install apache2
安装后手动启动Apache2,默认端口号是:80,如果需要修改端口号:vim ports.conf 修改文件中的80端口
一、Start Apache 2 Server /启动apache服务
# /etc/init.d/apache2 start or $ sudo /etc/init.d/apache2 start
二、 Restart Apache 2 Server /重启apache服务
# /etc/init.d/apache2 restart or $ sudo /etc/init.d/apache2 restart
三、Stop Apache 2 Server /停止apache服务
# /etc/init.d/apache2 stop or $ sudo /etc/init.d/apache2 stop
然后:
在/etc/apache2/apache2.conf 文件中添加白名单
仿照</usr/share>添加白名单
浙公网安备 33010602011771号