Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I use solaris 10 and I did follow the following tutorial http://www.whoopis.com/howtos/apache-auth.html
in order to use htaccess for 1 directory on my webserver.
I've fist edited httpd.conf:
I added AllowOverride AuthConfig in the general part of the file
and in the virtual part of the server.
Then I've created a password file with htpasswd and an .htaccess file. I've restarted apache many times but I don't get any change, no login prompt to be seen.
What did I forget?
Thanks for any help.
Are you sure you're editing the correct httpd.conf? Because you should at least see a "Forbidden" error or "Internal server error", if apache reads the "AllowOverride Authconfig" directive.
You can leave the "AllowOverride Authconfig", only in the virtualhost part adding
Until now I just looked in the logs from my virtualhost. I found the apache's logs, and it says:
Quote:
[ Jun 10 15:09:00 Executing start method ("/lib/svc/method/http-apache2 start") ]
Syntax error on line 1218 of /etc/apache2/httpd.conf:
AllowOverride not allowed here
[ Jun 10 15:09:00 Method "start" exited with status 1 ]
I want to apply my .htaccess to the following virtual host:
Thank you very much! The problem seems to be gone. I have another difficulty though:
Quote:
[ Jun 10 15:57:59 Executing start method ("/lib/svc/method/http-apache2 start") ]
(125)Address already in use: make_sock: could not bind to address xxx.xxx.xx.xx:80
no listening sockets available, shutting down
It seemed that even when I diseabled apache, there were still httpd processes. So I just killed them all and restarted apache. Now it works. Thanks a lot for your help!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.