<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Apache Server Error 500 -- plz help in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/apache-server-error-500-plz-help/m-p/3399638#M14401</link>
    <description>Many Thank SEP, and Bojan Nemec for you kind reply.&lt;BR /&gt;&lt;BR /&gt;Ok, Now server error 500 is removed, as per the instructions, i did the following&lt;BR /&gt;&lt;BR /&gt;in httpd.conf&lt;BR /&gt;&lt;DIRECTORY ...=""&gt;&lt;BR /&gt;AllowOverride AuthConfig Limit&lt;BR /&gt;&lt;/DIRECTORY&gt;&lt;BR /&gt;&lt;BR /&gt;in .htaccess&lt;BR /&gt;Require valid-user&lt;BR /&gt;Allow from 10&lt;BR /&gt;Satisfy any&lt;BR /&gt;&lt;BR /&gt;but now apache server doesnt even ask for userid/password to the clients of another network, i.e. if client's ip is 11.x.x.x, then he/she can access the pages, without being prompt for userid/password.&lt;BR /&gt;&lt;BR /&gt;Many Thanks&lt;BR /&gt;Regards&lt;BR /&gt;Maaz</description>
    <pubDate>Thu, 14 Oct 2004 12:08:39 GMT</pubDate>
    <dc:creator>Maaz</dc:creator>
    <dc:date>2004-10-14T12:08:39Z</dc:date>
    <item>
      <title>Apache Server Error 500 -- plz help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-server-error-500-plz-help/m-p/3399635#M14398</link>
      <description>Dear Gurus,&lt;BR /&gt;&lt;BR /&gt;# rpm -q httpd&lt;BR /&gt;httpd-2.0.40-21&lt;BR /&gt;&lt;BR /&gt;I have to implement the following scenario&lt;BR /&gt;If a client belongs to the network-id of 10, i.e. if client's ip is like 10.x.x.x, then he/she will access the page without asking for username/password from apache server.&lt;BR /&gt;But if client's ip is other than 10.x.x.x, he must be asked for username/password by the apache server.&lt;BR /&gt;&lt;BR /&gt;i did the following &lt;BR /&gt;&lt;BR /&gt;# cat /etc/httpd/conf/httpd.conf&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;&lt;DIRECTORY&gt;&lt;BR /&gt;&lt;BR /&gt;Options Indexes FollowSymLinks&lt;BR /&gt;&lt;BR /&gt;AllowOverride AuthConfig&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Order allow,deny&lt;BR /&gt;Allow from all&lt;BR /&gt;&lt;BR /&gt;&lt;/DIRECTORY&gt;&lt;BR /&gt;&lt;BR /&gt;# cat /var/www/html/.htaccess&lt;BR /&gt;AuthUserFile /tmp/.htpasswd&lt;BR /&gt;AuthName "Private"&lt;BR /&gt;AuthType Basic&lt;BR /&gt;require valid-user&lt;BR /&gt;Allow from 10&lt;BR /&gt;Satisfy all&lt;BR /&gt;&lt;BR /&gt;Now from any client either from 10.x.x.x, or from 11.x.x.x, when i access the page, following error message receives&lt;BR /&gt;&lt;BR /&gt;Server error!&lt;BR /&gt;The server encountered an internal error and was unable to complete your request. Either the &lt;BR /&gt;&lt;BR /&gt;server is overloaded or there was an error in a CGI script. &lt;BR /&gt;If you think this is a server error, please contact the webmaster &lt;BR /&gt;&lt;BR /&gt;Error 500&lt;BR /&gt;10.0.0.100 &lt;BR /&gt;Wed 13 Oct 2004 11:30:22 PM PKST &lt;BR /&gt;Apache/2.0.40 (Red Hat Linux) &lt;BR /&gt;&lt;BR /&gt;But when I just remove the "Allow from 10", and "Satisfy all" from the /var/www/html/.htaccess, the server works properly, i.e. pages are protected, and offered by entering userid/password&lt;BR /&gt;&lt;BR /&gt;So plz help me, and le me know what i did wrong, and how can I implement the above mentioned scenario&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;Maaz</description>
      <pubDate>Wed, 13 Oct 2004 22:17:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-server-error-500-plz-help/m-p/3399635#M14398</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2004-10-13T22:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Server Error 500 -- plz help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-server-error-500-plz-help/m-p/3399636#M14399</link>
      <description>Gosh,&lt;BR /&gt;&lt;BR /&gt;What a pain.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://httpd.apache.org" target="_blank"&gt;http://httpd.apache.org&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;There are instructions there.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 14 Oct 2004 00:52:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-server-error-500-plz-help/m-p/3399636#M14399</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-10-14T00:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Server Error 500 -- plz help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-server-error-500-plz-help/m-p/3399637#M14400</link>
      <description>Maaz,&lt;BR /&gt;&lt;BR /&gt;First try to change the AllowOverride line to:&lt;BR /&gt;&lt;BR /&gt;AllowOverride AuthConfig Limit&lt;BR /&gt;&lt;BR /&gt;This is because Allow is a Limit type. See &lt;A href="http://httpd.apache.org/docs-2.0/mod/core.html#allowoverride" target="_blank"&gt;http://httpd.apache.org/docs-2.0/mod/core.html#allowoverride&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Second I think that you must change the Satisfy all line to Satisfy Any to get what you want. All means and (address and password), Any means or (address or password). See &lt;A href="http://httpd.apache.org/docs-2.0/mod/core.html#satisfy" target="_blank"&gt;http://httpd.apache.org/docs-2.0/mod/core.html#satisfy&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Bojan</description>
      <pubDate>Thu, 14 Oct 2004 01:52:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-server-error-500-plz-help/m-p/3399637#M14400</guid>
      <dc:creator>Bojan Nemec</dc:creator>
      <dc:date>2004-10-14T01:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Server Error 500 -- plz help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-server-error-500-plz-help/m-p/3399638#M14401</link>
      <description>Many Thank SEP, and Bojan Nemec for you kind reply.&lt;BR /&gt;&lt;BR /&gt;Ok, Now server error 500 is removed, as per the instructions, i did the following&lt;BR /&gt;&lt;BR /&gt;in httpd.conf&lt;BR /&gt;&lt;DIRECTORY ...=""&gt;&lt;BR /&gt;AllowOverride AuthConfig Limit&lt;BR /&gt;&lt;/DIRECTORY&gt;&lt;BR /&gt;&lt;BR /&gt;in .htaccess&lt;BR /&gt;Require valid-user&lt;BR /&gt;Allow from 10&lt;BR /&gt;Satisfy any&lt;BR /&gt;&lt;BR /&gt;but now apache server doesnt even ask for userid/password to the clients of another network, i.e. if client's ip is 11.x.x.x, then he/she can access the pages, without being prompt for userid/password.&lt;BR /&gt;&lt;BR /&gt;Many Thanks&lt;BR /&gt;Regards&lt;BR /&gt;Maaz</description>
      <pubDate>Thu, 14 Oct 2004 12:08:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-server-error-500-plz-help/m-p/3399638#M14401</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2004-10-14T12:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Server Error 500 -- plz help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-server-error-500-plz-help/m-p/3399639#M14402</link>
      <description>Maaz,&lt;BR /&gt;&lt;BR /&gt;This is probably because of Allow from all (or the default). Apache will look if somebody can access the page in this order:&lt;BR /&gt;&lt;BR /&gt;Allow from all&lt;BR /&gt;Require valid-user&lt;BR /&gt;Allow from 10&lt;BR /&gt;&lt;BR /&gt;Allow from all is good for all clients, so no password ask. To get what you want you must set up the folowing order:&lt;BR /&gt;&lt;BR /&gt;Deny from all&lt;BR /&gt;Require valid-user&lt;BR /&gt;Allow from 10&lt;BR /&gt;&lt;BR /&gt;So you can put in httpd.conf&lt;BR /&gt;&lt;DIRECTORY ...=""&gt;&lt;BR /&gt;AllowOverride AuthConfig Limit&lt;BR /&gt;&lt;/DIRECTORY&gt;&lt;BR /&gt;&lt;BR /&gt;and in .htaccess&lt;BR /&gt;&lt;BR /&gt;Order Deny,Allow&lt;BR /&gt;Deny from all&lt;BR /&gt;AuthUserFile /tmp/.htpasswd&lt;BR /&gt;AuthName "Private"&lt;BR /&gt;AuthType Basic&lt;BR /&gt;Require valid-user&lt;BR /&gt;Allow from 10&lt;BR /&gt;Satisfy Any&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Bojan</description>
      <pubDate>Fri, 15 Oct 2004 02:05:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-server-error-500-plz-help/m-p/3399639#M14402</guid>
      <dc:creator>Bojan Nemec</dc:creator>
      <dc:date>2004-10-15T02:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Server Error 500 -- plz help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-server-error-500-plz-help/m-p/3399640#M14403</link>
      <description>I m really highly Thankful to u Dear Bojan Nemec.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks, and Regards,&lt;BR /&gt;Maaz</description>
      <pubDate>Fri, 15 Oct 2004 23:28:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-server-error-500-plz-help/m-p/3399640#M14403</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2004-10-15T23:28:17Z</dc:date>
    </item>
  </channel>
</rss>

