Code Monkey home page Code Monkey logo

Comments (5)

Morethanevil avatar Morethanevil commented on May 20, 2024 2

Nextcloud only supports Apache officially. How do you run Nextcloud? Docker or installed on your host?

This would be a valid vHost for Apache. I use it myself and I have Nextcloud on my host without docker. Replace YOUR.DOMAIN.HERE with your domain and check document root.

<VirtualHost *:80>
     ServerAdmin [email protected]
     DocumentRoot /var/www/html/nextcloud/
     ServerName YOUR.DOMAIN.HERE
     <Directory /var/www/html/nextcloud/>
        Options +FollowSymlinks
        AllowOverride All
        Require all granted
          <IfModule mod_dav.c>
            Dav off
          </IfModule>
        SetEnv HOME /var/www/html/nextcloud
        SetEnv HTTP_HOME /var/www/html/nextcloud
  Satisfy Any
</Directory>

<FilesMatch \.php$>
      # For Apache version 2.4.10 and above, use SetHandler to run PHP as a fastCGI process server
      SetHandler "proxy:unix:/run/php/php8.2-fpm.sock|fcgi://localhost"
    </FilesMatch>

<IfModule mod_headers.c>
      Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
    </IfModule>

<IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteCond %{HTTP_USER_AGENT} DavClnt
        RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
        RewriteRule ^remote/(.*) remote.php [QSA,L]
        RewriteRule ^(?:build|tests|config|lib|3rdparty|templates)/.* - [R=404,L]
        RewriteCond %{REQUEST_URI} !^/\.well-known/(acme-challenge|pki-validation)/.*
        RewriteRule ^(?:\.|autotest|occ|issue|indie|db_|console).* - [R=404,L]
</IfModule>

     ErrorLog ${APACHE_LOG_DIR}/error.log
     CustomLog ${APACHE_LOG_DIR}/access.log combined
     LogFormat "%a %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" proxy
</VirtualHost>

from zoraxy.

Saturn745 avatar Saturn745 commented on May 20, 2024 1

Maybe also a toggle for common headers such as HSTS and HTTP/2

from zoraxy.

Radiusel avatar Radiusel commented on May 20, 2024 1

Hey TobyChui
Thanks for this nice reverse proxy and the hard work that went into it!
I want to warm up Saturn745's question. I hope I'm in the right place.
I'm also using Zoraxy since a few days (before that Nginx Proxy Manager).
But with Zoraxy I have problems with my web applications,
primarily with Nextcloud. This reports 4 states
Strict-Transport-Security + HSTS + /.well-known/caldav + /.well-known/carddav
which could be changed in the Nginx Proxy Manager by simple settings.
Zoraxy is not a NGINX proxy so my question is, will there be a setting for this for non experienced users?
Please excuse my bad English.
Best regards
Radius
NC-Sicherheit

from zoraxy.

Radiusel avatar Radiusel commented on May 20, 2024

Many thanks for the suggestion.
And sorry for the late response.

I have adapted the configs for Nextcloud and a few other websites that I run privately. With my limited technical know-how, it's just my hobby, it takes me (much) longer to convert it.
HTTP/2 support is still missing, but will be implemented soon.
I'm already looking forward to it.

from zoraxy.

Radiusel avatar Radiusel commented on May 20, 2024

SUPER TOP
Thank you very much, you are the best, @tobychui
Nextcloud with the Memories app is now quiet.

from zoraxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.