Tenon Intersystems Please see text links at bottom of page for navigation
Please see text links at bottom of page for navigation

Search tenon.com

Thanks to:

WebTen

Re: Apache Conf.

To: webten@xxxxxxxxxxxxxxx
Subject: Re: Apache Conf.
From: Robert Brandtjen <rob@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 18 Jun 2002 20:30:54 -0500
On Tuesday 18 June 2002 07:57 pm, you wrote:
> My personal preference is to use vi (vi + /path/to/file)

AS promised:

<VirtualHost 216.161.20.100:443>
ServerAdmin rob@xxxxxxxxxxxxxxxxxxx
DocumentRoot /var/www/html/mysite
ServerName www.mysite.com
ServerPath /mysite
DirectoryIndex /cgi-bin/silver
ScriptAlias /cgi-bin/ /var/www/html/mysite/cgi-bin/
SSLCertificateFile /etc/httpd/conf/ssl.crt/www.mysite.com.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/www.mysite.com.key
SSLEngine on
</VirtualHost>

the above site is for an SSL type client - a normal VH container with webdav 
turned on might look like this:
first server options:
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#
#Settings for WebDAV Server
#
#DAVLockDB/var/www/html/DAVLock/DAVLock
#DAVMinTimeout600
#DAVDepthInfinityOn

Now the container directives:
#<Directory/var/www/html/DAVdocs>
#DAV On
#AllowOverrideAuthConfig
#AuthName"DAVRestricted"
#AuthTypeBasic
#AuthUserFile/var/www/html/users
#<Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
#Requirevalid-user
#</Limit>
#</Directory>
AccessFileName .htaccess
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>
now the VH container:
<VirtualHost 216.161.20.100:80>
ServerName www.mysite.com
DAVLockDB /var/www/html/DAVLock/DAVLock
<Directory /var/www/html/WebSites/www.mysite.com>
Options Indexes FollowSymLinks IncludesNoExec
DAV On
AllowOverride AuthConfig
AuthName "DAV Restricted"
AuthType Basic
AuthUserFile /var/www/html/users
<Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
Require user bright
</Limit>
</Directory>
DocumentRoot /var/www/html/WebSites/www.mysite.com
DirectoryIndex index.html index.htm Index.html Index.htm Default.html 
Default.htm default.html default.htm
ServerAlias www.mysite.com mysite.com
SSLEngine off
</VirtualHost>

webdav is a special access "tool" for allow html editing via a browser, no ftp 
needed then. You may or may not want that, you must have apache compiled to 
use mod dav and have mod dav.

"#" is a "hash mark" which , when applied, makes the directive "unseen" by 
Httpd (and perl, for instance) in other words, a "#" turns the 
option/directive "off".

Apache is a name for an assortment of applications made by the people at 
apache.org, "Httpd" refers to the webserver it self.

uptime
  7:49pm  up 37 days,  8:52,  1 user,  load average: 0.00, 0.00, 0.00

-- 
 Robert Brandtjen
 --------------------------------------
 Web Site Creation and Hosting Services
 Hostmaster@xxxxxxxxxxxxxxxxxxx
 www.prometheusmedia.com


| Tenon Home | Products | Order | Contact Us | About Tenon | Register | Tech Support | Resources | Press Room | Mailing Lists |

Powered By iTools

Copyright©2003 Tenon Intersystems, 232 Anacapa Street, Suite 2A, Santa Barbara, CA 93101. All rights reserved.
Questions about our website - Contact: webmaster@tenon.com.


Tenon Home  Tenon Home  Tenon Home  Tenon Home Product Info  Tenon Ordering Contact About Register Support Resources Press Mailing Lists