Link to home
Start Free TrialLog in
Avatar of jibranilyas
jibranilyas

asked on

Restart Apache Server fails !

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!
ASKER CERTIFIED SOLUTION
Avatar of ramazanyich
ramazanyich
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jibranilyas
jibranilyas

ASKER

thanks