This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Sophs als Reverseproxy mit rewrite path

Hallo zusammen,

ich nutze aktuell nginx als Reverseproxy unteranderem mit einem rewrite path. Ist das so wie in meiner Konfig auch mit der Sophos UTM möglich?

Hier meine virtual host file aus Nginx:

***

server {
listen 80;
server_name seafile.xxxxx.xx;

proxy_set_header X-Forwarded-For $remote_addr;

# Reverse proxy for seafile
location / {
fastcgi_pass 127.0.0.1:8000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;

fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
fastcgi_param REMOTE_ADDR $remote_addr;

access_log /var/log/nginx/seahub.access.log;
error_log /var/log/nginx/seahub.error.log;
fastcgi_read_timeout 36000;
}

# Reverse Proxy for seahub
location /seafhttp {
rewrite ^/seafhttp(.*)$ $1 break;
proxy_pass http://127.0.0.1:8082;
client_max_body_size 0;
proxy_connect_timeout 36000s;
proxy_read_timeout 36000s;
proxy_send_timeout 36000s;
send_timeout 36000s;
}

#CHANGE THIS PATH WITH YOUR OWN DIRECTORY
location /media {
root /home/seafile/seafile-server/seahub;
}
}

***

Beste Grüße
Fabian



This thread was automatically locked due to age.
  • (Sorry, my German-speaking brain isn't creating thoughts at the moment. [:(])

    This is not possible at present, Fabian - you will need to do that on the web server.  You might want to vote for and comment on (commenting gets as much attention as votes) URL redirection.

    MfG - Bob (Bitte auf Deutsch weiterhin.)

     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA