## apache configuration
### port-based configuration
- Configure port ports.conf in
- open ports in aliyun in
- a2ensite xxx.conf enable service configuration
### reverse proxy configuration
Reverse proxy for separating the front and rear ends
#### configuration content
`` `
# Closed forward proxy, can use ProxyPass
ProxyRequests Off
# api proxy address
ProxyPass / api http://192.168.0.1:8081
# do not jump url (not redirected)
ProxyPassReverse / api HTTP: //192.168. 0.1: 8081
# of cookies into the www api's
ProxyPassReverseCookieDomain 192.168.0.1:8082 192.168.0.1:8081
ProxyPassReverseCookiePath / / api
`` `
#### opening module
```javascript
sudo a2enmod ssl
sudo a2enmod proxy
sudo a2enmod proxy_balancer
sudo a2enmod proxy_http
These are configured proxy content