Hi,
When i installed nextcloud on hestiacp its works great, but enabling url rewriting throw “Access Denied / 403 error” on url “domain.tld/apps/files/”
Does anyone know how to fix it?
All works except rewriting urls ;/
Hi,
When i installed nextcloud on hestiacp its works great, but enabling url rewriting throw “Access Denied / 403 error” on url “domain.tld/apps/files/”
Does anyone know how to fix it?
All works except rewriting urls ;/
Hi;
It would be usefull to know if you use apache or nginx
but if you use nginx I suggest you you copy my files nextcloud.* you could find them here
into your /usr/local/hestia/data/templates/web/nginx/
than choose nextcloud
I’m actually using it in preprod at https://cloud.glibre.net
backend apache and nginx as proxy
did you try this config ?
https://docs.nextcloud.com/server/14/admin_manual/installation/source_installation.html#apache-configuration-label
if it’s working well you could make your file immuable with chattr
chattr +i
Problem with redirection maybe,
config.php
‘overwrite.cli.url’ => ‘https://cloud.daffyy.pro/’,
‘htaccess.RewriteBase’ => ‘/’,
and domain redirect me first to /apps/files and next to /apps/files/index.php
always nginx or apache2 adding index.php to url
apache2.conf
<VirtualHost 31.133.0.97:8443>
Dav offServerName cloud.daffyy.pro ServerAdmin [email protected] DocumentRoot /home/admin/web/cloud.daffyy.pro/public_html ScriptAlias /cgi-bin/ /home/admin/web/cloud.daffyy.pro/cgi-bin/ Alias /vstats/ /home/admin/web/cloud.daffyy.pro/stats/ Alias /error/ /home/admin/web/cloud.daffyy.pro/document_errors/ #SuexecUserGroup admin admin CustomLog /var/log/apache2/domains/cloud.daffyy.pro.bytes bytes CustomLog /var/log/apache2/domains/cloud.daffyy.pro.log combined ErrorLog /var/log/apache2/domains/cloud.daffyy.pro.error.log # run "a2enmod headers" if this isn't working <IfModule mod_headers.c> Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains; preload" </IfModule> <Directory /home/admin/web/cloud.daffyy.pro/public_html>
SetEnv HOME /home/admin/web/cloud.daffyy.pro/public_html
SetEnv HTTP_HOME /home/admin/web/cloud.daffyy.pro/public_html
AllowOverride All
SSLRequireSSL
Options +Includes -Indexes +ExecCGI
php_admin_value open_basedir /home/admin/web/cloud.daffyy.pro/public_html:/home/admin/web/cloud.daffyy.pro/private:/home/admin/tmp:/dev/urandom
php_admin_value upload_tmp_dir /home/admin/tmp
php_admin_value session.save_path /home/admin/tmp
<Directory /home/admin/web/cloud.daffyy.pro/stats>
AllowOverride All
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /home/admin/conf/web/cloud.daffyy.pro/ssl/cloud.daffyy.pro.crt
SSLCertificateKeyFile /home/admin/conf/web/cloud.daffyy.pro/ssl/cloud.daffyy.pro.key
SSLCertificateChainFile /home/admin/conf/web/cloud.daffyy.pro/ssl/cloud.daffyy.pro.caHeader always set Strict-Transport-Security "max-age=15552000; includeSubDomains" SetHandler "proxy:unix:/run/php/php7.3-fpm-cloud.daffyy.pro.sock|fcgi://localhost/" IncludeOptional /home/admin/conf/web/cloud.daffyy.pro/apache2.ssl.conf_*<IfModule itk.c> AssignUserID admin admin </IfModule> <IfModule mod_env.c> # Add security and privacy related headers Header set X-Content-Type-Options "nosniff" Header set X-XSS-Protection "1; mode=block" Header set X-Robots-Tag "none" Header set X-Download-Options "noopen" Header set X-Permitted-Cross-Domain-Policies "none" Header set Referrer-Policy "no-referrer" SetEnv modHeadersAvailable true
nginx.conf
server {
listen 31.133.0.97:443 ssl http2;
server_name cloud.daffyy.pro ;
ssl_certificate /home/admin/conf/web/cloud.daffyy.pro/ssl/cloud.daffyy.pro.pem;
ssl_certificate_key /home/admin/conf/web/cloud.daffyy.pro/ssl/cloud.daffyy.pro.key;
ssl_stapling on;
ssl_stapling_verify on;
error_log /var/log/apache2/domains/cloud.daffyy.pro.error.log error;include /home/admin/conf/web/cloud.daffyy.pro/nginx.hsts.conf*; location / { proxy_pass https://31.133.0.97:8443; location ~* ^.+\.(jpg|jpeg|gif|png|ico|svg|css|zip|tgz|gz|rar|bz2|exe|pdf|doc|xls|ppt|txt|odt|ods|odp|odf|tar|bmp|rtf|js|mp3|avi|mpeg|flv|html|htm)$ { root /home/admin/web/cloud.daffyy.pro/public_html; access_log /var/log/apache2/domains/cloud.daffyy.pro.log combined; access_log /var/log/apache2/domains/cloud.daffyy.pro.bytes bytes; expires max; try_files $uri @fallback; } } location /error/ { alias /home/admin/web/cloud.daffyy.pro/document_errors/; } location @fallback { proxy_pass https://31.133.0.97:8443; } location ~ /\.ht {return 404;} location ~ /\.svn/ {return 404;} location ~ /\.git/ {return 404;} location ~ /\.hg/ {return 404;} location ~ /\.bzr/ {return 404;} include /home/admin/conf/web/cloud.daffyy.pro/nginx.ssl.conf_*;
}
I will be grateful for help