Skip to content

Instantly share code, notes, and snippets.

View petarpetrovic's full-sized avatar
🚀
Founder mode 💻

Petar Petrović petarpetrovic

🚀
Founder mode 💻
View GitHub Profile
server {
listen 80;
server_name my-server.com;
access_log /var/log/nginx/my-server.com-access.log;
error_log /var/log/nginx/my-server.com-error.log;
root /var/www/my-server.com/public;
index index.php index.html;
@jhass
jhass / diaspora.conf
Last active August 27, 2025 16:01
Advanced Diaspora Apache reverse proxy
# Make sure to notice the comments at https://gist.github.com/jhass/719014#gistcomment-19774
<VirtualHost *:80>
ServerName diaspora.example.org
ServerAlias www.diaspora.example.org
RedirectPermanent / https://diaspora.example.org/
</VirtualHost>
<VirtualHost *:443>
ServerName diaspora.example.org