WebVirtMgr NGINX - > Apache2配置

时间:2015-08-14 11:40:20

标签: linux apache nginx

有人会帮我将配置从Nginx转移到Apache2吗? 我不知道如何处理标题编辑...

由于

据此:

https://github.com/retspen/webvirtmgr/wiki/Install-WebVirtMgr

server {
    listen 80 default_server;

    server_name $hostname;
    #access_log /var/log/nginx/webvirtmgr_access_log; 

    location /static/ {
        root /var/www/webvirtmgr/webvirtmgr; # or /srv instead of /var
        expires max;
    }

    location / {
        proxy_pass http://127.0.0.1:8000;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-for $proxy_add_x_forwarded_for;
        proxy_set_header Host $host:$server_port;
        proxy_set_header X-Forwarded-Proto $remote_addr;
        proxy_connect_timeout 600;
        proxy_read_timeout 600;
        proxy_send_timeout 600;
        client_max_body_size 1024M; # Set higher depending on your needs 
    }
}

1 个答案:

答案 0 :(得分:0)

找到解决方案!只是确保你已经安装了libapache2-mod-wsgi

$ sudo yum install nautilus-actions
$ nautilus-actions-config-tool