Discussion:
Can I use Webmin to create/manage .htaccess files?
bronto
2002-08-19 15:58:56 UTC
Permalink
I need to be able to rapidly create and edit .htaccess files for my
customers. I've only set one up once, months ago, and it works well
for the directory it was intended for but I need to start doing this
a lot.

Can I use webmin for this? If so, is there a step-by-step somewhere?

Thanks


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
-
Forwarded by the Webmin mailing list at webadmin-***@lists.sourceforge.net
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list
Jamie Cameron
2002-08-20 00:57:30 UTC
Permalink
Post by bronto
I need to be able to rapidly create and edit .htaccess files for my
customers. I've only set one up once, months ago, and it works well for
the directory it was intended for but I need to start doing this a lot.
Can I use webmin for this? If so, is there a step-by-step somewhere?
Webmin does have a feature for editing .htaccess files, in the Apache Webserver
module. If you click on the 'Per-Directory Options Files' link, you can search
for any existing .htaccess files so that they can be edited, or create a new
one by entering a directory.

The only down side is that the interface allows editing of almost all apache
directives, so it is quite complex (like the rest of the module).

- Jamie



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
-
Forwarded by the Webmin mailing list at webadmin-***@lists.sourceforge.net
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list
bronto
2002-08-20 01:39:27 UTC
Permalink
Yes, I saw that and assumed that this was what it was for, but cannot
get it to work. I set up a directory with an .htaccess file by hand,
then looked at the apache module to see how webmin interpreted it. I
then tried to do it in webmin directly in another directory:

1) In Document Options, I set Authentication options to checked;

In Access Control:

2) I changed Authentication Type to Basic;

3) Restrict access by login changed to All valid users;

4) I set the user text file to the proper path. I know this is set
accurately because once I saved it I could edit the file that I had
previously placed there manually.

All other options were left as Default. I don't intend to use group
authorization.

When I try to browse to the directory I get a "500 internal server
error". My http log says:

[error] [client (my IP address)] need AuthName: /log

What do I do? I'm using webmin .97

Thanks for your reply.
Post by Jamie Cameron
Post by bronto
I need to be able to rapidly create and edit .htaccess files for my
customers. I've only set one up once, months ago, and it works
well for the directory it was intended for but I need to start
doing this a lot.
Can I use webmin for this? If so, is there a step-by-step somewhere?
Webmin does have a feature for editing .htaccess files, in the
Apache Webserver
module. If you click on the 'Per-Directory Options Files' link, you can search
for any existing .htaccess files so that they can be edited, or create a new
one by entering a directory.
The only down side is that the interface allows editing of almost all apache
directives, so it is quite complex (like the rest of the module).
- Jamie
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
-
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
-
Forwarded by the Webmin mailing list at webadmin-***@lists.sourceforge.net
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list
Jamie Cameron
2002-08-20 13:38:10 UTC
Permalink
Sounds like you didn't set the 'Authentication realm name' option.
Actually, I didn't even know that apache required it .. but the
error message seems to suggest that it does.

- Jamie
Post by bronto
Yes, I saw that and assumed that this was what it was for, but cannot
get it to work. I set up a directory with an .htaccess file by hand,
then looked at the apache module to see how webmin interpreted it. I
1) In Document Options, I set Authentication options to checked;
2) I changed Authentication Type to Basic;
3) Restrict access by login changed to All valid users;
4) I set the user text file to the proper path. I know this is set
accurately because once I saved it I could edit the file that I had
previously placed there manually.
All other options were left as Default. I don't intend to use group
authorization.
When I try to browse to the directory I get a "500 internal server
[error] [client (my IP address)] need AuthName: /log
What do I do? I'm using webmin .97
Thanks for your reply.
Post by Jamie Cameron
Post by bronto
I need to be able to rapidly create and edit .htaccess files for my
customers. I've only set one up once, months ago, and it works well
for the directory it was intended for but I need to start doing this
a lot.
Can I use webmin for this? If so, is there a step-by-step somewhere?
Webmin does have a feature for editing .htaccess files, in the Apache Webserver
module. If you click on the 'Per-Directory Options Files' link, you can search
for any existing .htaccess files so that they can be edited, or create a new
one by entering a directory.
The only down side is that the interface allows editing of almost all apache
directives, so it is quite complex (like the rest of the module).
- Jamie
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
-
Forwarded by the Webmin mailing list at webadmin-***@lists.sourceforge.net
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list
bronto
2002-08-20 18:31:34 UTC
Permalink
Hey, that did it! Thanks.

One thing that was confusing me was that I kept expecting webmin to
create an actual .htaccess file for me in the directory. But once
it's working, I can see now that it is in httpd.conf. I guess this
will end up making my .conf file really big as time goes on, and I'll
have to restart apache for it to be effective, but since I'll be
doing this mostly for new domains anyway that's not such a big deal.
All the changes will go at once. And there won't be a file to hack
in the web accessible directories.

Thanks again.
Post by Jamie Cameron
Sounds like you didn't set the 'Authentication realm name' option.
Actually, I didn't even know that apache required it .. but the
error message seems to suggest that it does.
- Jamie
Post by bronto
Yes, I saw that and assumed that this was what it was for, but
cannot get it to work. I set up a directory with an .htaccess file
by hand, then looked at the apache module to see how webmin
interpreted it. I then tried to do it in webmin directly in
1) In Document Options, I set Authentication options to checked;
2) I changed Authentication Type to Basic;
3) Restrict access by login changed to All valid users;
4) I set the user text file to the proper path. I know this is set
accurately because once I saved it I could edit the file that I had
previously placed there manually.
All other options were left as Default. I don't intend to use
group authorization.
When I try to browse to the directory I get a "500 internal server
[error] [client (my IP address)] need AuthName: /log
What do I do? I'm using webmin .97
Thanks for your reply.
Post by Jamie Cameron
Post by bronto
I need to be able to rapidly create and edit .htaccess files for
my customers. I've only set one up once, months ago, and it
works well for the directory it was intended for but I need to
start doing this a lot.
Can I use webmin for this? If so, is there a step-by-step somewhere?
Webmin does have a feature for editing .htaccess files, in the Apache Webserver
module. If you click on the 'Per-Directory Options Files' link, you can search
for any existing .htaccess files so that they can be edited, or create a new
one by entering a directory.
The only down side is that the interface allows editing of almost all apache
directives, so it is quite complex (like the rest of the module).
- Jamie
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
-
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
-
Forwarded by the Webmin mailing list at webadmin-***@lists.sourceforge.net
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list
dale's list account
2002-08-20 21:39:52 UTC
Permalink
Hello,
Post by bronto
Hey, that did it! Thanks.
One thing that was confusing me was that I kept expecting webmin to create
an actual .htaccess file for me in the directory. But once it's working,
I can see now that it is in httpd.conf. I guess this will end up making
my .conf file really big as time goes on,
Just be aware that some browsers (IE 5.x and Opera on Mac OS X and probably
Mac OS) will not load your entire httpd.conf file if it is too big. Then
when you save it, you will wipe out whatever was at the end of the file.
Believe me, I lost 10 virtual hosts that way once. Lucky I did have a
backup!

Maybe (hint) webmin could make a backup httpd.conf file prior to editing it
as a safety?
Post by bronto
and I'll have to restart apache for it to be effective, but since I'll be
doing this mostly for new domains anyway that's not such a big deal. All
the changes will go at once. And there won't be a file to hack in the web
accessible directories.
Thanks again.
[snip]

Dale



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
-
Forwarded by the Webmin mailing list at webadmin-***@lists.sourceforge.net
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list
bronto
2002-08-20 21:54:58 UTC
Permalink
Post by dale's list account
Hello,
Just be aware that some browsers (IE 5.x and Opera on Mac OS X and
probably Mac OS) will not load your entire httpd.conf file if it is
too big. Then when you save it, you will wipe out whatever was at
the end of the file. Believe me, I lost 10 virtual hosts that way
once. Lucky I did have a backup!
Maybe (hint) webmin could make a backup httpd.conf file prior to
editing it as a safety?
You mean in webmin, right? Yeah, I learned that lesson too. I don't
edit httpd.conf directly in the apache module anymore, but I didn't
know that it was the browser's fault. That's why I wanted to know
how to do it through the interfaces.


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
-
Forwarded by the Webmin mailing list at webadmin-***@lists.sourceforge.net
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list
Jamie Cameron
2002-08-21 00:36:45 UTC
Permalink
If you are using the options under 'Per-Directory Options Files' on the
main page of the apache module, it will create .htaccess files. It sounds
like you are using the 'Per-Directory Options' under a virtual server,
which created <Directory> sections in httpd.conf .

As far as functionality goes, they are pretty much the same .. in fact,
<Directory> sections are better because all your options are in one
httpd.conf file.

- Jamie
Post by bronto
Hey, that did it! Thanks.
One thing that was confusing me was that I kept expecting webmin to
create an actual .htaccess file for me in the directory. But once it's
working, I can see now that it is in httpd.conf. I guess this will end
up making my .conf file really big as time goes on, and I'll have to
restart apache for it to be effective, but since I'll be doing this
mostly for new domains anyway that's not such a big deal. All the
changes will go at once. And there won't be a file to hack in the web
accessible directories.
Thanks again.
Post by Jamie Cameron
Sounds like you didn't set the 'Authentication realm name' option.
Actually, I didn't even know that apache required it .. but the
error message seems to suggest that it does.
- Jamie
Post by bronto
Yes, I saw that and assumed that this was what it was for, but cannot
get it to work. I set up a directory with an .htaccess file by hand,
then looked at the apache module to see how webmin interpreted it. I
1) In Document Options, I set Authentication options to checked;
2) I changed Authentication Type to Basic;
3) Restrict access by login changed to All valid users;
4) I set the user text file to the proper path. I know this is set
accurately because once I saved it I could edit the file that I had
previously placed there manually.
All other options were left as Default. I don't intend to use group
authorization.
When I try to browse to the directory I get a "500 internal server
[error] [client (my IP address)] need AuthName: /log
What do I do? I'm using webmin .97
Thanks for your reply.
Post by Jamie Cameron
Post by bronto
I need to be able to rapidly create and edit .htaccess files for my
customers. I've only set one up once, months ago, and it works
well for the directory it was intended for but I need to start
doing this a lot.
Can I use webmin for this? If so, is there a step-by-step somewhere?
Webmin does have a feature for editing .htaccess files, in the Apache Webserver
module. If you click on the 'Per-Directory Options Files' link, you can search
for any existing .htaccess files so that they can be edited, or create a new
one by entering a directory.
The only down side is that the interface allows editing of almost all apache
directives, so it is quite complex (like the rest of the module).
- Jamie
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
-
Forwarded by the Webmin mailing list at webadmin-***@lists.sourceforge.net
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list

Loading...