<?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 Authorization Realms in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/apache-authorization-realms/m-p/3039756#M5988</link>
    <description>Okay, is what I described pretty much the standard way to do something like this?&lt;BR /&gt;&lt;BR /&gt;There is no resource issues, I was just wondering if there was a more general way that I could do this, more automated.&lt;BR /&gt;&lt;BR /&gt;Thank you...&lt;BR /&gt;&lt;BR /&gt;-Travis</description>
    <pubDate>Fri, 01 Aug 2003 22:58:59 GMT</pubDate>
    <dc:creator>tpfraz</dc:creator>
    <dc:date>2003-08-01T22:58:59Z</dc:date>
    <item>
      <title>Apache Authorization Realms</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-authorization-realms/m-p/3039754#M5986</link>
      <description>Hello,&lt;BR /&gt;I'm trying to configure apache Apache so that each virtual host that I have will have a seperate realm with one authorized user.&lt;BR /&gt;It's for allowing an admin of each site to view a statistics page.&lt;BR /&gt;So I want only that user to be able to view the stats for their site.&lt;BR /&gt;&lt;BR /&gt;I'm pretty sure I can do this by defining seperate &lt;DIRECTORY&gt; blocks, one for each virtual host, and define in it a seperate realm and give access to only one user.&lt;BR /&gt;And of course create those users with htpasswd.&lt;BR /&gt;Something like this maybe&lt;BR /&gt;&lt;BR /&gt;&lt;DIRECTORY&gt;&lt;BR /&gt; AllowOverride AuthConfig&lt;BR /&gt;&lt;/DIRECTORY&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;DIRECTORY&gt;&lt;BR /&gt; AuthType Basic&lt;BR /&gt; AuthName "Stats Page"&lt;BR /&gt; AuthUserFile /etc/httpd/users&lt;BR /&gt; Require user domain1user&lt;BR /&gt;&lt;/DIRECTORY&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIRECTORY&gt;&lt;BR /&gt; AuthType Basic&lt;BR /&gt; AuthName "Stats Page"&lt;BR /&gt; AuthUserFile /etc/httpd/users&lt;BR /&gt; Require user domain2user&lt;BR /&gt;&lt;/DIRECTORY&gt;&lt;BR /&gt;&lt;BR /&gt;But is there a more concise way to do this?&lt;BR /&gt;Is there a way to use the normal Linux user accounts for authorization?&lt;BR /&gt;&lt;BR /&gt;Or some other way which wouldn't require a new Directory block for each site?&lt;BR /&gt;&lt;BR /&gt;Thanks...&lt;BR /&gt;&lt;BR /&gt;-Travis&lt;/DIRECTORY&gt;</description>
      <pubDate>Fri, 01 Aug 2003 21:38:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-authorization-realms/m-p/3039754#M5986</guid>
      <dc:creator>tpfraz</dc:creator>
      <dc:date>2003-08-01T21:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Authorization Realms</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-authorization-realms/m-p/3039755#M5987</link>
      <description>I am pretty experienced with apache and can not think of a way to do this more efficiently.&lt;BR /&gt;&lt;BR /&gt;If you just use linux accounts and permissions, I don't think apache will work right.  You'd just get a forbidden 403 error.&lt;BR /&gt;&lt;BR /&gt;Are their efficiency issues here? Is this burning up the cpu?&lt;BR /&gt;&lt;BR /&gt;There is an old rule with apache once you get it to do what you want.  If it works, don't try and fix it.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 01 Aug 2003 22:35:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-authorization-realms/m-p/3039755#M5987</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-08-01T22:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Authorization Realms</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-authorization-realms/m-p/3039756#M5988</link>
      <description>Okay, is what I described pretty much the standard way to do something like this?&lt;BR /&gt;&lt;BR /&gt;There is no resource issues, I was just wondering if there was a more general way that I could do this, more automated.&lt;BR /&gt;&lt;BR /&gt;Thank you...&lt;BR /&gt;&lt;BR /&gt;-Travis</description>
      <pubDate>Fri, 01 Aug 2003 22:58:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-authorization-realms/m-p/3039756#M5988</guid>
      <dc:creator>tpfraz</dc:creator>
      <dc:date>2003-08-01T22:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Authorization Realms</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-authorization-realms/m-p/3039757#M5989</link>
      <description>To automate the process you could have a backend (database, file, whatever) and a script (bash, perl, awk, python, you name it) that generates the virtual host part.&lt;BR /&gt;&lt;BR /&gt;Say you create a virtualhosts file. You then use the include directive to make it part of the httpd.conf config file.&lt;BR /&gt;&lt;BR /&gt;Now to add a new host you would add it in the backend, rerun the virtualhosts script and restart apache. (or hup it to reload it's config, i don't know if possible).&lt;BR /&gt;&lt;BR /&gt;Next you can write a web interface on top of the backend to make administration easier.&lt;BR /&gt;That should be automated enough.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Cristi&lt;BR /&gt;&lt;BR /&gt;PS There's someone who sells a commercial Apache configuration interface that does web-based apache configurations. Or you could look into webmin and other administration tools to see if the include virtual hosts configuration.</description>
      <pubDate>Sat, 02 Aug 2003 06:16:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-authorization-realms/m-p/3039757#M5989</guid>
      <dc:creator>Cristian Draghici_1</dc:creator>
      <dc:date>2003-08-02T06:16:14Z</dc:date>
    </item>
  </channel>
</rss>

