Comments (5)
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.
Maybe also a toggle for common headers such as HSTS and HTTP/2
from zoraxy.
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
from zoraxy.
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.
SUPER TOP
Thank you very much, you are the best, @tobychui
Nextcloud with the Memories app is now quiet.
from zoraxy.
Related Issues (20)
- [BUG] Service Expose Proxy Page Blank HOT 1
- [BUG] Let's Encrypt certs are Staging ones, so they're untrusted on browsers HOT 33
- Autostart Webserver when Proxy Root set to static webserver [BUG] HOT 1
- [ENHANCEMENTS] Access list per subdomain HOT 3
- [BUG] Cannot handle HTTP 301 response correctly HOT 5
- [BUG] Very high CPU usage HOT 6
- [ENHANCEMENTS] Multiple Subdomains in Single Rule HOT 2
- [BUG] Uptime Monitor shows old port
- [BUG]SMTP without auth HOT 2
- [QUESTION] Wildcard lets'encrypt certificat HOT 16
- [ENHANCEMENTS] SMTP without Auth and port 25
- [ENHANCEMENTS] Dark Theme
- [Help Wanted] Unable to create ACME cert behind opnsense and proxmox HOT 4
- [ENHANCEMENTS] "getting started" in documentation HOT 1
- [ENHANCEMENTS] Multi account accès webmin page HOT 1
- [BUG] BAD HANDSHAKE HOT 2
- [BUG] Uptime Page probleme "Downstream proxy server is online with misconfigured settings" HOT 6
- Force Renew SSL Certificate [ENHANCEMENTS] HOT 1
- [BUG]Send X-forwarder-ip or X-real-ip ? HOT 8
- [ENHANCEMENTS] SSH Tunnel Forwarding Management HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zoraxy.