nginx配置
server {
listen 80;
server_name svn.0000.com;
location / {
proxy_pass http://ipaddress:8080;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
access_log off;
}
}
httpd配置
<VirtualHost ipaddress:8080>
DocumentRoot /data/htdocs/mytest/ServerName svn.0000.com
ErrorLog logs/0000_error.log
CustomLog logs/0000_access.log ws
</VirtualHost>