Solved

Restart Apache Server fails !

Posted on 2004-09-02
2
846 Views
Last Modified: 2006-11-17
I get this error when i try to restart Apache after adding some lines in httpd.conf     if i take out the lines, the webserver starts successfully

[root@*************** var]#  ../etc/rc.d/init.d/httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: Syntax error on line 1088 of /etc/httpd/conf/httpd.conf:
AuthName not allowed here
                                                           [FAILED]

lines added in httpd.conf

AuthName "Apache"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
require valid-user

Please advise!
0
Comment
Question by:jibranilyas
2 Comments
 
LVL 19

Accepted Solution

by:
ramazanyich earned 500 total points
ID: 11967971
All that parameters are available only under Directory or Location directive: So your conf should be
<Location /protected/part/of/your/server>
AuthName "Apache"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
require valid-user
</Location>

where protected /part/of/your/server should be replaced by url which are yu trying to protect
0
 

Author Comment

by:jibranilyas
ID: 11968722
thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now