Comments (6)
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.
Now with Zoraxy v3, you can add custom headers to a host routing rule as follows.
from zoraxy.
Related Issues (20)
- [HOW-TO] How do I add url rewrite directives HOT 2
- [BUG] SMTP login options HOT 2
- [BUG] New Access Control feature returns error on Default rule HOT 9
- [ENHANCEMENTS]Show LAN IP as "LAN" and not some other countries HOT 5
- [ENHANCEMENTS] Forward Auth HOT 2
- [BUG] Statistics are not saved, starting from zero after restart of the docker image HOT 6
- [BUG] Uses docker network instead of real network for Whitelist HOT 8
- [ENHANCEMENTS] Zrok support (similar to ZeroTier, FOSS) HOT 2
- [ENHANCEMENTS] Promox Support? HOT 1
- [BUG] Proxy rules requiring TLS don't connect after 3.0.3 HOT 6
- [BUG] Zoraxy redirects to HTTPS and fails to load HOT 2
- [BUG] High cpu usage on big file download HOT 5
- [QUESTION] Performance HOT 3
- [ENHANCEMENTS] UDP Tunneling / Proxy HOT 3
- Start automatically after boot HOT 4
- [BUG] Downstream proxy server is online with misconfigured settings HOT 7
- Migrating NPM to Zoraxy HOT 10
- [ENHANCEMENTS] Configure reverse proxy using docker labels HOT 8
- "Waiting for DNS record propagation." and possible split DNS issue
- Add version info to footer or even better add apt repository 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.