Comments (7)
Hey @mhertel, sorry you're still having issues. Clean or dirty install from the last issue?
If you're using a dirty install, there are some things that need to be updated in /etc/nginx/sites-enabled/default
in order for this to start working.
The easiest way to get you going without reinstalling nginx or the entire box would be:
hostname=sub.domain.com(enter your (sub)domain here)
rm -rf /etc/nginx/ssl/${hostname}
cat > /etc/nginx/sites-enabled/default <<NGC
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
location /.well-known {
alias /srv/.well-known;
allow all;
default_type "text/plain";
autoindex on;
}
location / {
return 301 https://\$server_name\$request_uri;
}
}
# SSL configuration
server {
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
server_name _;
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
include snippets/ssl-params.conf;
client_max_body_size 40M;
server_tokens off;
root /srv/;
index index.html index.php index.htm;
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;
}
include /etc/nginx/apps/*;
location ~ /\.ht {
deny all;
}
location /fancyindex {
}
}
NGC
This will rebuild nginx with the proper configuration and wipe out the empty ssl certs from a botched install. If you run the updated letsencrypt script, it should find the necessary hooks to inject your hostname for acme.sh to find them.
Please let me know if you're still running into issues after this
from swizzin.
I actually did a clean install after it failed last time since I couldnt get nginx to run properly again LOL
I will try out what you posted and will report back..
from swizzin.
ok, it worked.. I also changed my hostname to what letsencrypt was looking for.
Cheers!
from swizzin.
Hmm, letsencrypt worked, but now rutorrent won't connect to rtorrent any more.. Let's see what I broke now lol
from swizzin.
I got it working now, some of the copy paste for the nginx config was borked..
from swizzin.
That's why I recommend cat -- the cat command necessarily has to escape the $ in the file, otherwise cat will expand them as variables (which are null)
fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;
becomes
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
Once the command is done.
Is this safe to close now?
from swizzin.
Yes, thanks again!
from swizzin.
Related Issues (20)
- [BUG] error: curl: error while loading shared libraries: liblber-2.4.so.2: cannot open shared object file: No such file or directory HOT 7
- [BUG] navidrome failing on installation HOT 3
- [BUG] rtorrent showing incorrect partial downloads percentages HOT 8
- Unable to authenticate to Panel through Public IP[BUG] HOT 6
- [BUG] QBittorrent installation fails HOT 4
- [BUG] Netdata installer and uninstaller failed to download from curl
- [BUG] Login form only works on port 443 for panel HOT 1
- [BUG] PYLOAD INSTALLATION HOT 2
- [BUG] netdata fails to install/remove HOT 1
- [BUG] unattend for master user is interactive
- [BUG] Installing several packages unattended without env HOT 1
- [iSSUE] Can this script install rtorrent with custom location?
- [BUG] can't install plugins via rtx
- Deluge v2.x daemon will not start. No module named 'deluge.libtorrent'
- [BUG] qBittorrent 4.6.4 fails build HOT 8
- RSS [BUG] HOT 2
- [BUG] IPTABLES fail2ban debian
- Sonarr gives "Bad Request (Invalid host)" after updating HOT 5
- [BUG] deluge.error.LibtorrentImportError: No libtorrent library found: No module named 'libtorrent' (Debian 12) HOT 5
- [BUG] curl: undefined symbol: curl_easy_header HOT 8
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 swizzin.