PDA

View Full Version : Apache OSX 10.4 Question


djbeamernrs81
10-21-2008, 09:19 PM
Hi,

I have just recently encountered this problem, where when creating a folder under a new site if you use http://www.domain.com/test does not work but http://www.domain.com/test/ does work.

Here is part of my configuration

## Default Virtual Host Configuration



<VirtualHost IPADDRESS:16080>

ServerName www.domain.com

ServerAdmin admin@example.com

DocumentRoot "/Library/WebServer/Documents/agencyrx/data"

DirectoryIndex "index.html" "index.php"

## CustomLog '|/usr/sbin/rotatelogs "/var/log/httpd/agencyrx_access_log" 604800' "%{PC-Remote-Addr}i %l %u %t \"%r\" %>s %b"

CustomLog "/var/log/httpd/domain_access_log" combined

ErrorLog '|/usr/sbin/rotatelogs "/var/log/httpd/_error_log" 604800'

ErrorDocument 404 /error.html

<IfModule mod_ssl.c>

SSLEngine Off

SSLLog "/var/log/httpd/ssl_engine_log"

SSLCertificateFile "/etc/certificates/Default.crt"

SSLCertificateKeyFile "/etc/certificates/Default.key"

SSLCipherSuite "ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:!SSLv2:+EXP:+eNULL"

</IfModule>

<IfModule mod_dav.c>

DAVLockDB "/var/run/davlocks/.davlock100"

DAVMinTimeout 600

</IfModule>

<Directory "/Library/WebServer/Documents/Domain/data">

Options All +MultiViews -Includes -Indexes +ExecCGI

<IfModule mod_dav.c>

DAV Off

</IfModule>

AllowOverride None

</Directory>

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteCond %{REQUEST_METHOD} ^TRACE

RewriteRule .* - [F]

</IfModule>

<IfModule mod_alias.c>

Redirect temp "/status/" "http://www.domain.com/stat/index.html"

Redirect temp "/status" "http://www.domain.com/stat/index.html"

</IfModule>

LogLevel warn

ServerAlias damain.com

ServerAlias www.domain2.com

ServerAlias domain2.com

</VirtualHost>