DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 7th July 2013
frcc frcc is offline
Don't Worry Be Happy!
 
Join Date: Jul 2011
Location: hot,dry,dusty,rainy,windy,straight winds, etc-Texas
Posts: 44
Thanked 0 Times in 0 Posts
Question Apache directory usage?

For those of you running Apache and OpenBsd I was wondering about the following

Q. For a static site, does it matter if the www.domains.xxx's are placed in
/var/www OR
/var/www/htdocs

Q Should just the "Domain's and their respective index.html's" be located together
in /var/www
with supporting doc's like jpg's and other site supporting docs placed in
/var/www/htdocs


(our business site is a simple static one with no e-commerce,sql or mail etc)

Does it matter ?
How do u folks do it ?
Reply With Quote
  #2   (View Single Post)  
Old 7th July 2013
LeFrettchen's Avatar
LeFrettchen LeFrettchen is offline
Marveled user
 
Join Date: Aug 2012
Location: Bronvaux, France
Posts: 107
Thanked 0 Times in 0 Posts
Default

Hi.

Maybe you should read the OpenBSD FAQ - Section 10.

Note that in OpenBSD, the Apache httpd(8) server has been chroot(2)ed by default.
Also note that the Apache manual is available as part of the man file set, and installed in /usr/share/doc/html/httpd.

I think index.html (or index.php) must be installed in /var/www/htdocs.

You can create some symbolic links, and then place your files wherever you want 'em to be, but I never tried.


Edit : you can also edit your configuration file /var/www/conf/httpd.conf.
__________________
In case of emergency

Last edited by LeFrettchen; 8th July 2013 at 12:08 AM.
Reply With Quote
  #3   (View Single Post)  
Old 8th July 2013
frcc frcc is offline
Don't Worry Be Happy!
 
Join Date: Jul 2011
Location: hot,dry,dusty,rainy,windy,straight winds, etc-Texas
Posts: 44
Thanked 0 Times in 0 Posts
Default OpenBsd and Apache

Thanks for the info.
Yes, I have read as much docs as i an find inside OpenBsd.
My questions don't arise as a result of poor OpenBsd docs because that would be
untrue as i think they are very good.

Confusion and questioning arise from the fact that I am learning.

I have read most of the man docs associated with httpd
also the fine apache docs in /usr/share/docs/html/httpd etc

just wondering what u folks do .....

currently i have 8 virtual servers set up in httpd.conf living in /var/www
they have their own directories and within them are all the docs they need.
so they look like this /var/www/somedomain.com/index.html and other files like
jpg's etc within the same directory that relate to it.

Robot and sitemap.txt files are duplicated within the directories which i think
should be in /var/www ..........as i am duplicating them the way i am doing it.
Of course it does give me control over each and every virtual host's sitemap and
robots file.

Anyway it works, but if you don't ask u don''t learn......

I am having some dns trouble but i think setting up a /var/www/etc/hosts file will
correct some of errors i am getting..

thanks
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
Forum usage: How to thank? Greg_Morgan Off-Topic 2 9th October 2009 12:49 AM
strange "~" directory in home directory gosha OpenBSD General 5 23rd February 2009 06:12 PM
Mounting NAS as apache alias directory Yuka FreeBSD General 7 18th July 2008 02:58 PM
Upgrading application not installed in default port directory APACHE ijk FreeBSD Ports and Packages 5 13th July 2008 04:34 PM
pagedaemon 100% cpu usage fenrisW0lf NetBSD General 14 5th June 2008 12:31 PM


All times are GMT. The time now is 11:33 PM.


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