$ tar -zxvf apache-2.0.43.tar.gz $ ./configure $ make $ su Password:(パスワード入力) # make install # /usr/local/apache2/bin/apachectl start start: httpd started
9.1 Use WebDAV
$ ./configure --enable-shared=yes --enable-dav=yes Alias /dav "/var/www/dav" <Location /dav> DAV on </Location> DAVLockDB /var/www/dav Alias /dav "/var/www/dav" DAVLockDB /var/www/dav/DAVLock DAV On # # AuthName "WebDAV access" # AuthType basic # AuthUserFile /var/www/mod_dav/.htpasswd # require user yui #
#!/bin/sh # # Startup script for the Apache Web Server # # chkconfig: 345 85 15 # description: Apache is a World Wide Web server. It is used to serve \ # HTML files and CGI. # processname: httpd # pidfile: /var/run/httpd.pid # config: /usr/local/etc/apache/access.conf # config: /usr/local/etc/apache/httpd.conf # config: /usr/local/etc/apache/srm.conf # Source function library. . /etc/rc.d/init.d/functions # See how we were called. case "$1" in start|stop|status|restart|configtest) #/usr/local/sbin/apachectl $* /usr/local/apache2/bin/apachectl $* ;; *) echo "Usage: $0 {start|stop|restart|reload|status|configtest}" exit 1 esac exit 0