打开extra下的httpd-vhosts.conf
添加:
<VirtualHost *:443>
# ServerAdmin webmaster@dummy-host.example.com
ServerName www.api.******.com
ServerAlias api.******.com
ErrorLog "/usr/local/apache2/******error_log"
CustomLog "/usr/local/apache2/******om-access_log" common
<Directory />
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order deny,allow
Allow from all
</Directory>
ProxyRequests Off
#反向代理设置
ProxyPass / http://localhost:000000/
#重定向擦去原痕迹
ProxyPassReverse / http://localhost:000000/
</VirtualHost>
网友评论