help with .htaccess files noe being recongized

i created an .htaccess file with the following contents
DirectoryIndex default.html

the server does not recognize this because the the default page is not showing when i view the site.<br><br>Post edited by: nhsitehost, at: 2007/12/13 11:15

bump

To enable DirectoryIndex in .htaccess files, browse to:

Services:Configure Website

Click on the public_html directory icon (bottom of the Apache configuration page).

Click Document Options.

In the option labeled "Options file can override…" select "Selected below" and check "Indexing and index files".

You can also do this system-wide using the Apache Webserver module in Webmin.

Or, you can just make default.html one of the available index pages for all servers. If you have many virtual servers that use default.html as the index page, this is the best option.

Browse to Webmin:Servers:Apache Webserver

Click the Global Configuration tab

Click Edit Config Files

Search for "DirectoryIndex" and add default.html to the end of the line, and save it.

Click Apply Changes to reload the Apache configuration file.

this didn’t help

i’ve tried all these suggestions and the server still does not respond to the .htaccess file

What OS/version are you on? Are AllowOverride settings being configured anywhere else on your system–Debian/Ubuntu, for example, has many configuration files, and one of them could be disabling this feature.

You’ll want to check this directive in the relevant configuration files in the Directory sections that apply to your virtual servers. Also check to be sure “AccessFileName” is set somewhere, and is set to .htaccess.

Operating system CentOS Linux 5
Webmin version 1.380
Virtualmin version 3.50 (Pro)

from my htaccess.conf file:

[code:1]
<VirtualHost 111.111.111.111:80>
SuexecUserGroup "#512" "#511"
ServerName my-web-site.org
ServerAlias www.my-web-site.org
DocumentRoot /home/my-web-site/public_html
ErrorLog "|/etc/webmin/virtual-server/writelogs.pl 119634279623772 /home/my-web-site/logs/error_log"
CustomLog "|/etc/webmin/virtual-server/writelogs.pl 119634279623772 /home/my-web-site/logs/access_log" combined
ScriptAlias /cgi-bin/ /home/my-web-site/cgi-bin/
ScriptAlias /awstats /home/my-web-site/cgi-bin
DirectoryIndex index.html index.htm index.php index.php4 index.php5 awstats.pl
<Directory /home/my-web-site/public_html>
Options Indexes IncludesNOEXEC FollowSymLinks ExecCGI
allow from all
AllowOverride All
AddHandler fcgid-script .php
AddHandler fcgid-script .php5
AddHandler ruby-object .rb .rbx
FCGIWrapper /home/my-web-site/fcgi-bin/php5.fcgi .php
FCGIWrapper /home/my-web-site/fcgi-bin/php5.fcgi .php5
#RubyRequire apache/ruby-run
#RubyHandler Apache::RubyRun.instance
</Directory>
<Directory /home/my-web-site/cgi-bin>
allow from all
Options ExecCGI Indexes
AllowOverride All
</Directory>
RemoveHandler .php
RemoveHandler .php5
PerlRequire /etc/webmin/virtualmin-google-analytics/apachemod.pl
PerlOutputFilterHandler Virtualmin::GoogleAnalytics
RedirectMatch /cgi-bin/mailman/([^/])(.) https://my-web-site.org:10000/virtualmin-mailman/unauthenticated/$1.cgi$2
RedirectMatch /mailman/([^/])(.) https://my-web-site.org:10000/virtualmin-mailman/unauthenticated/$1.cgi$2
php_value memory_limit 32M
php_value register_globals Off
PerlSetVar AnalyticsID -----

Alias /pipermail /var/lib/mailman/archives/public

</VirtualHost>
[/code:1]

and…

[code:1]

AccessFileName: The name of the file to look for in each directory

for additional configuration directives. See also the AllowOverride

directive.

AccessFileName .htaccess
[/code:1]

I can’t see why this isn’t working.

Are there any errors in the error_log for that virtual server?

Any chance I could drop in on the box to debug this personally? You can email me the server and auth details, or install my public key from here: http://software.virtualmin.com/lib/authorized_keys

how do i install your public key?

i logged into SSH and ran the full line or text you lined to on the command line and got this error

[code:1]
-bash: ssh-rsa: command not found
[/code:1]

If you don’t already have any public keys in place, just do the following:

cd /root/.ssh
wget http://software.virtualmin.com/lib/authorized_keys

That will usually do the trick, assuming public key logins aren’t disabled (I believe they are enabled by default on all of our supported platforms). I still need to know the address of the server, of course.

key installed server ip sent to email joe@virtualmin.com

I, too have this same problem as OP. But weird thing is I couldn’t even find this option ‘Services:Configure Website’ in my virtualmin.

I’m using Webmin 1.4000 and Virtualmin Version 3.54.gpl. Can someone help me find the option ‘Services:Configure Website’?

thanks

Um, I have this same problem, except it also broke all of my other sites. :frowning: Any ideas?

In terms of my other sites, when I installed virtualmin, they’re virtual servers started being ignorred with the single virtualmin created demo trying to handle everything. I fixed that but I have no idea how to get my .htaccess file back…

In terms of my other sites, when I installed virtualmin, they're virtual servers started being ignorred with the single virtualmin created demo trying to handle everything. I fixed that but I have no idea how to get my .htaccess file back...

Aren’t you describing an entirely different problem here? .htaccess has nothing to do with what site shows up.

See this guide for dealing with your problem:

http://www.virtualmin.com/documentation/id,troubleshooting_common_problems/#the_wrong_site_shows_up

I'm using Webmin 1.4000 and Virtualmin Version 3.54.gpl. Can someone help me find the option 'Services:Configure Website'?

Are you using the Virtualmin Framed Theme?

nhsitehost wrote:

bump

Nevermind on this one, too simple, too stressed.

AllowOverride must include AuthConfig… and for the time being I wanted to do this globally, so in httpd.conf:

<Directory "/usr/home">
AllowOverride AuthConfig
</Directory>

this was my solution.

Off-Topic: Have you guys thought about using ACLs to get around the group limit issue in FreeBSD? It seems to work for me without any kind of recompile.