| https:///weradocs/WeraDesk_Apache.shtml |
The Apache WebServer's configuration file is /etc/httpd/httpd.conf . Edit the following parameters to configure the WebServer's name [myhost.mydomain] and accessibility (this may be different within your Linux distribution, e.g. SuSE 8.1 enters 'DocumentRoot' and 'myhost.mydomain' automatically during installation):
# 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your
# machine always knows itself by this address. If you use Apache strictly for
# local testing and development, you may use 127.0.0.1 as the server name.
#
#ServerName ifmpc143.ifm.uni-hamburg.de
ServerName myhost.mydomain
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/srv/www/htdocs"
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/srv/www/htdocs">
#
# Controls who can get stuff from this server.
#
Order deny,allow
deny from all
# allow from .ifm.uni-hamburg.de
allow from .mydomain
|
The following parameters configure access to WeraDesk and the cgi-script
by ~user mapping, so WeraDesk can be accessed at
http://myhost.mydomain/~wera/WeraDesk.html
[configure in /etc/httpd/httpd.conf or /etc/httpd/suse_public_html.conf
(SuSE 8.1)]:
#
# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is received.
#
<IfModule mod_userdir.c>
UserDir public_html
</IfModule>
#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS PROPFIND>
Order deny,allow
deny from all
# allow from .ifm.uni-hamburg.de
allow from .mydomain
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
deny from all
# allow from .ifm.uni-hamburg.de
allow from .mydomain
</LimitExcept>
</Directory>
#
# Control access to User scripts.
#
<Directory /home/*/public_html/cgi-bin>
Options ExecCGI
SetHandler cgi-script
</Directory>
|
To make /home/wera/public_html accessable for Apache, enter from user root:
chmod 711 /home/wera |
Then from user wera create the directories (if they don't already exist) :
mkdir /home/wera/public_html mkdir /home/wera/public_html/cgi-bin mkdir /home/wera/etc |
Now you can unpack the weradocs_xxx.tar.gz package:
(assuming you have the archive mounted at /mnt/cdrom)
cd /home/wera tar -xvzf /mnt/cdrom/weradocs_xxx.tar.gz |
To make .html pages accessable to apache, execute the following commands after installing files to /home/wera/public_html :
cd /home/wera chmod 755 public_html cd public_html chmod -R 755 * |