Hi good people of Digital Ocean,
I installed the Ghost image. Now I want to change the path for Ghost (“<domain>”/blog). How do I do this?
PS: In Nginx
V1ncam
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
To serve Ghost from a subfolder instead of the root of the domain, you’ll need to edit
/etc/nginx/sites-enabled/ghost
And simply change the location block like:And then restart Nginx:
service nginx restart
Next you’ll also need to update Ghost’s configuration file as well. Edit the URL in
/var/www/ghost/config.js
And restart Ghost with
service ghost restart
You should be all set to go! You can now service files as normal from the Nginx document root as well.
Greetings and Cheers to all.
I have built an RTMP Nginx server. I am pushing from my 4G encoder to the server over a public network. The issue is it didn’t auto-reconnect to the server when the network is available after a lost signal. The configuration I used is below. Can any anyone help to improve my script and if there is anything missing?
rtmp_auto_push on; rtmp_auto_push_reconnect 1s; rtmp_socket_dir /var/sock;
rtmp {
server { listen 1935; chunk_size 8192;
application live { live on; allow play all; record off; allow publish 127.0.0.1; allow publish all; }
application restream { live on; allow play all; record off; allow publish 127.0.0.1; allow publish all; push rtmp://restream/a.rtmp.youtube.com/live2/w8r7-xxx-8kxv-xxxx; } } }