Skip to content

Instantly share code, notes, and snippets.

View petarpetrovic's full-sized avatar

Petar Petrović petarpetrovic

View GitHub Profile

Keybase proof

I hereby claim:

  • I am petarpetrovic on github.
  • I am petarpetrovic (https://keybase.io/petarpetrovic) on keybase.
  • I have a public key whose fingerprint is 6982 D88F 0F4F B48B E952 7390 B965 BE45 A808 2D7F

To claim this, I am signing this object:

@petarpetrovic
petarpetrovic / ownCloud 5 config file (nginx)
Created March 14, 2013 17:56
This is the proper config file for nginx and ownCloud version 5. Please note that slight variations might need to be applied in order for your particular instance to work. This one works for me, hence this Gist. Everyone is free to fork it and make proper modifications for different server configurations.
# This is the complete example of nginx configuration file for ownCloud 5
# This config file configures proper rewrite rules for the new release of ownCloud
# Also, this config file configures nginx to listen on both IPv4 and IPv6 addresses
# If you want it to listen to IPv4 address only, use listen 80; instead of listen [::]:80
# First, we configure redirection to HTTPS (substitue owncloud.example.com with the proper address of your OC instance)
server {
listen [::]:80;
server_name owncloud.example.com;