DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 20th September 2017
PapaParrot's Avatar
PapaParrot PapaParrot is offline
parrot
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 472
Default Nginx on OpenBsd

I am not sure this is the best place for this topic, so if it gets moved , no problem.

Using Nginx, on a server powered with OpenBsd, and I read in the documentation,
for better security, by default it does not show the contents of a directory like this:
(Apache) for example: http://rockyandtheparrots.org/images/
I would like to do the same on Nginx, but only for the directory I specify, hoping
that makes sense.
At this time for example I get : http://www.parrotsandopenbsd.org/images/
Quote:
403 Forbidden
nginx
Thank you
__________________
My best friends are parrots
Reply With Quote
  #2   (View Single Post)  
Old 20th September 2017
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 653
Default

Darn, I just did this recently on FreeBSD, but I believe it's platform agnostic.

In your nginx configuration file, set autoindex to on.

https://stackoverflow.com/questions/...e-browser-mode

There may also be a size directive. I used autoindex_exact_size off;

But I'm not sure if that's necessary.
Reply With Quote
  #3   (View Single Post)  
Old 20th September 2017
PapaParrot's Avatar
PapaParrot PapaParrot is offline
parrot
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 472
Default

Thanks a lot, seems to have worked fine .
I just added the :
Code:
  autoindex on;
as mentioned in the link you show, I did not seem to need to
Quote:
update the error.log
as they said. Or do anything else, just add the autoindex on ,... Thanks
__________________
My best friends are parrots
Reply With Quote
  #4   (View Single Post)  
Old 20th September 2017
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 653
Default

Great, glad it worked for you and your parrot.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenBSD nginx will be removed from base in OpenBSD-5.7 jggimi News 2 27th August 2014 05:59 PM
is nginx going to be default OpenBSD httpd? ershiba OpenBSD General 4 6th January 2013 03:55 AM
openbsd 5.1 and nginx barti OpenBSD General 2 1st October 2012 05:51 PM
OpenBSD nginx is going into base ocicat News 1 23rd September 2011 08:23 AM
About perdition and nginx satimis General software and network 3 10th December 2008 12:53 PM


All times are GMT. The time now is 10:14 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick