<?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 WEB PAGES in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/apache-web-pages/m-p/3375032#M13956</link>
    <description>Yes, you can do Authentication based Access system to the Web pages to be accessed.&lt;BR /&gt;&lt;BR /&gt;You can create a username/password file using "htpasswd" executable which comes with Apache and will be present in "bin" directory of the apache installed location.&lt;BR /&gt;go to the location htpasswd exist&lt;BR /&gt;then,&lt;BR /&gt;#./htpasswd -c passwordfile username&lt;BR /&gt;New password:&lt;BR /&gt;Re-type new password:&lt;BR /&gt;Adding password for user username&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;In the http.conf file&lt;BR /&gt;&lt;BR /&gt;Under the Directory tab&lt;BR /&gt;&lt;BR /&gt;&lt;DIRECTORY&gt;&lt;BR /&gt;AuthUserFile /PATH/TO/THE/PASSWD/FILE&lt;BR /&gt;AuthName "Enter the username/passwd"&lt;BR /&gt;AuthType Basic&lt;BR /&gt;Require valid-user&lt;BR /&gt;Options FollowSymLinks&lt;BR /&gt;&lt;/DIRECTORY&gt;&lt;BR /&gt;&lt;BR /&gt;now restart the apache server&lt;BR /&gt;It will promt you for the username and passwd when you are trying to access the particular location in the browser.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Senthil Murugan</description>
    <pubDate>Thu, 09 Sep 2004 07:16:36 GMT</pubDate>
    <dc:creator>Senthilmurugan</dc:creator>
    <dc:date>2004-09-09T07:16:36Z</dc:date>
    <item>
      <title>APACHE WEB PAGES</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-web-pages/m-p/3375030#M13954</link>
      <description>I am running apache on RH9, apache version 2.0.&lt;BR /&gt;&lt;BR /&gt;Is there a way that I can prompt for a user name and password when someone is trying to access certain web pages or documents. Do I do this in the httpd.conf file?</description>
      <pubDate>Wed, 08 Sep 2004 15:04:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-web-pages/m-p/3375030#M13954</guid>
      <dc:creator>Nobody's Hero</dc:creator>
      <dc:date>2004-09-08T15:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: APACHE WEB PAGES</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-web-pages/m-p/3375031#M13955</link>
      <description>Usually, this can be done in a number of ways.&lt;BR /&gt;&lt;BR /&gt;The most usual is to use a '.htaccess' file, asking for 'Auth' details.  An example perhaps:&lt;BR /&gt;&lt;BR /&gt;AuthType Basic&lt;BR /&gt;AuthName SomeAuthName&lt;BR /&gt;AuthUserFile /home/www/auth/user-auth.txt&lt;BR /&gt;&lt;BR /&gt;You can use more advance methods (querying a MySQL database, using the shadowing password system, or a dbm file), but that's pretty much it.&lt;BR /&gt;&lt;BR /&gt;In the 'user-auth.txt' you'd have 'user:encpass' pairs of your users.  You can also use 'require user &lt;USERNAME&gt;' directives to allow access.&lt;BR /&gt;&lt;BR /&gt;This is usually done on a directory level, not a file-level however.  The Apache documentation is very good with regards to this.  See &lt;A href="http://httpd.apache.org/docs-2.0/howto/auth.html" target="_blank"&gt;http://httpd.apache.org/docs-2.0/howto/auth.html&lt;/A&gt; for a how-to walk-through.&lt;BR /&gt;&lt;BR /&gt;The other way to do it is to program it yourself in PHP.  Once again, this is very well documented.  See &lt;A href="http://www.php.net/manual/en/features.http-auth.php" target="_blank"&gt;http://www.php.net/manual/en/features.http-auth.php&lt;/A&gt; for more details on that.&lt;/USERNAME&gt;</description>
      <pubDate>Wed, 08 Sep 2004 18:32:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-web-pages/m-p/3375031#M13955</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2004-09-08T18:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: APACHE WEB PAGES</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-web-pages/m-p/3375032#M13956</link>
      <description>Yes, you can do Authentication based Access system to the Web pages to be accessed.&lt;BR /&gt;&lt;BR /&gt;You can create a username/password file using "htpasswd" executable which comes with Apache and will be present in "bin" directory of the apache installed location.&lt;BR /&gt;go to the location htpasswd exist&lt;BR /&gt;then,&lt;BR /&gt;#./htpasswd -c passwordfile username&lt;BR /&gt;New password:&lt;BR /&gt;Re-type new password:&lt;BR /&gt;Adding password for user username&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;In the http.conf file&lt;BR /&gt;&lt;BR /&gt;Under the Directory tab&lt;BR /&gt;&lt;BR /&gt;&lt;DIRECTORY&gt;&lt;BR /&gt;AuthUserFile /PATH/TO/THE/PASSWD/FILE&lt;BR /&gt;AuthName "Enter the username/passwd"&lt;BR /&gt;AuthType Basic&lt;BR /&gt;Require valid-user&lt;BR /&gt;Options FollowSymLinks&lt;BR /&gt;&lt;/DIRECTORY&gt;&lt;BR /&gt;&lt;BR /&gt;now restart the apache server&lt;BR /&gt;It will promt you for the username and passwd when you are trying to access the particular location in the browser.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Senthil Murugan</description>
      <pubDate>Thu, 09 Sep 2004 07:16:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-web-pages/m-p/3375032#M13956</guid>
      <dc:creator>Senthilmurugan</dc:creator>
      <dc:date>2004-09-09T07:16:36Z</dc:date>
    </item>
  </channel>
</rss>

