nginx转发apache

来源:互联网 发布:新东方网络课下载 编辑:程序博客网 时间:2024/06/17 02:58

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>
0 0
原创粉丝点击