i have apache 2.2.15. in have virtual directory owncloud. attempting have http://cargobay.trekfederation.com, when type that, system response apache http server default page. if put in http://cargobay.trekfederation.com/index.php, works. in .htaccess file, have tried series of different rewriterules no avail.
the httpd entry looks this:
<virtualhost *:80> servername cargobay.trekfederation.com serveralias cargobay.trekfederation.net documentroot /var/www/html/owncloud directoryindex index.php index.html <directory /var/www/html/owncloud> options indexes followsymlinks multiviews allowoverride order allow,deny allow </directory> </virtualhost>
the owncloud .htaccess file looks this:
# version: 8.0.2 <ifmodule mod_fcgid.c> <ifmodule mod_setenvif.c> <ifmodule mod_headers.c> setenvifnocase ^authorization$ "(.+)" xauthorization=$1 requestheader set xauthorization %{xauthorization}e env=xauthorization </ifmodule> </ifmodule> </ifmodule> <ifmodule mod_php5.c> php_value upload_max_filesize 513m php_value post_max_size 513m php_value memory_limit 512m php_value mbstring.func_overload 0 php_value always_populate_raw_post_data -1 <ifmodule mod_env.c> setenv htaccessworking true </ifmodule> </ifmodule> <ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewritecond %{the_request} ^[a-z]{3,9}\ /(.*)index\.php($|\ |\?) rewriterule ^ /%1 [r=301,l] rewritecond %{request_filename} -f [or] rewritecond %{request_filename} -d rewriterule .* - [env=http_authorization:%{http:authorization}] rewriterule ^\.well-known/host-meta /public.php?service=host-meta [qsa,l] rewriterule ^\.well-known/host-meta\.json /public.php?service=host-meta-json [qsa,l] rewriterule ^\.well-known/carddav /remote.php/carddav/ [r] rewriterule ^\.well-known/caldav /remote.php/caldav/ [r] rewriterule ^apps/calendar/caldav\.php remote.php/caldav/ [qsa,l] rewriterule ^apps/contacts/carddav\.php remote.php/carddav/ [qsa,l] rewriterule ^remote/(.*) remote.php [qsa,l] rewriterule ^(build|tests|config|lib|3rdparty|templates)/.* - [r=404,l] rewriterule ^(\.|autotest|occ|issue|indie|db_|console).* - [r=404,l] </ifmodule> <ifmodule mod_mime.c> addtype image/svg+xml svg svgz addencoding gzip svgz </ifmodule> <ifmodule mod_dir.c> directoryindex index.php index.html </ifmodule> adddefaultcharset utf-8 options -indexes <ifmodule pagespeed_module> modpagespeed off </ifmodule> <ifmodule mod_headers.c> <filesmatch "\.(css|js)$"> header set cache-control "max-age=7200, public" </filesmatch> </ifmodule> errordocument 403 /core/templates/403.php errordocument 404 /core/templates/404.php