help with .htaccess files noe being recongized

19 posts / 0 new
Last post
#1 Tue, 12/11/2007 - 15:51
nhsitehost

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

Thu, 12/13/2007 - 11:15
nhsitehost

bump

Wed, 12/26/2007 - 06:24 (Reply to #2)
nhsitehost

from my htaccess.conf file:
[code:1]
&lt;VirtualHost 111.111.111.111:80&gt;
SuexecUserGroup &quot;#512&quot; &quot;#511&quot;
ServerName my-web-site.org
ServerAlias www.my-web-site.org
DocumentRoot /home/my-web-site/public_html
ErrorLog &quot;|/etc/webmin/virtual-server/writelogs.pl 119634279623772 /home/my-web-site/logs/error_log&quot;
CustomLog &quot;|/etc/webmin/virtual-server/writelogs.pl 119634279623772 /home/my-web-site/logs/access_log&quot; 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
&lt;Directory /home/my-web-site/public_html&gt;
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
&lt;/Directory&gt;
&lt;Directory /home/my-web-site/cgi-bin&gt;
allow from all
Options ExecCGI Indexes
AllowOverride All
&lt;/Directory&gt;
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

&lt;/VirtualHost&gt;
[/code:1]

Wed, 12/26/2007 - 06:26 (Reply to #3)
nhsitehost

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]

Tue, 01/08/2008 - 14:23 (Reply to #4)
Joe
Joe's picture

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

--

Check out the forum guidelines!

Tue, 01/08/2008 - 14:25 (Reply to #5)
nhsitehost

how do i install your public key?

Tue, 01/08/2008 - 14:27 (Reply to #6)
nhsitehost

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]

Tue, 01/08/2008 - 15:10 (Reply to #7)
Joe
Joe's picture

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.

--

Check out the forum guidelines!

Tue, 01/08/2008 - 16:46 (Reply to #8)
nhsitehost

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

Tue, 03/25/2008 - 17:22 (Reply to #9)
dealspiggy

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

Sun, 06/01/2008 - 12:11 (Reply to #10)
Joe
Joe's picture

<div class='quote'>I'm using Webmin 1.4000 and Virtualmin Version 3.54.gpl. Can someone help me find the option 'Services:Configure Website'?</div>

Are you using the Virtualmin Framed Theme?

--

Check out the forum guidelines!

Sat, 04/04/2009 - 12:52 (Reply to #11)
marvingardens

<b>nhsitehost wrote:</b>
<div class='quote'>bump</div>

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:

&lt;Directory &quot;/usr/home&quot;&gt;
AllowOverride AuthConfig
&lt;/Directory&gt;

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.

Thu, 12/13/2007 - 13:32
Joe
Joe's picture

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 &quot;Options file can override..&quot; select &quot;Selected below&quot; and check &quot;Indexing and index files&quot;.

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 &quot;DirectoryIndex&quot; and add default.html to the end of the line, and save it.

Click Apply Changes to reload the Apache configuration file.

--

Check out the forum guidelines!

Tue, 12/18/2007 - 16:33 (Reply to #13)
nhsitehost

this didn't help

Fri, 12/21/2007 - 02:09 (Reply to #14)
nhsitehost

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

Fri, 12/21/2007 - 12:33 (Reply to #15)
Joe
Joe's picture

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 &quot;AccessFileName&quot; is set somewhere, and is set to .htaccess.

--

Check out the forum guidelines!

Fri, 12/21/2007 - 13:52 (Reply to #16)
nhsitehost

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

Sun, 06/01/2008 - 07:59
imagenesis

Um, I have this same problem, except it also broke all of my other sites. :( 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...

Sun, 06/01/2008 - 12:10 (Reply to #18)
Joe
Joe's picture

<div class='quote'>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...</div>

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_proble...

--

Check out the forum guidelines!

Topic locked