Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: duncan on August 08, 2005, 09:51:37 AM

Title: Web Directory - local/external access.
Post by: duncan on August 08, 2005, 09:51:37 AM
Just testing a few things out on SME7-26. I have created an "Ibay" out side of the normal Ibay location under /mythtv/mythweb and have added the following template.

Code: [Select]
#----------------------------------------------------------
# mythweb fragment
#----------------------------------------------------------

    Alias /mythweb         /mythtv/mythweb

<Directory /mythtv/mythweb>
    Options Indexes
    Options +Includes
    AllowOverride None
    order deny,allow
    deny from all
    allow from all
    php_admin_flag      allow_url_fopen on
    AddType application/x-httpd-php .php .php3 .phtml
    AddType application/x-httpd-php-source .phps
    AuthName "mythweb access"
    AuthType Basic
    AuthExternal pwauth
    require valid-user
    Satisfy all
</Directory>

#----------------------------------------------------------
# mythweb fragment
#----------------------------------------------------------


This works fine and I am prompted with a local users password/username combo. However - I would like this web directory to only challange users when accessing the site externally - in the same manner as a normal Ibay (If set that way). I think I have tracked it back to /home/e-smith/db/accounts - However I am a bit stuck at this point. Any Ideas.
Title: Web Directory - local/external access.
Post by: duncan on August 08, 2005, 10:06:04 AM
Ps - My main reason for doing this outside the normal process is so I can pass off
Code: [Select]
php_admin_flag      allow_url_fopen on
for this directory without having to do it globally in php.ini.
Title: Web Directory - local/external access.
Post by: duncan on August 10, 2005, 12:58:49 PM
Quote from: "duncan"
Ps - My main reason for doing this outside the normal process is so I can pass off
Code: [Select]
php_admin_flag      allow_url_fopen on
for this directory without having to do it globally in php.ini.


For future reference. The way to add something like this is to.

Add the ibay as normal ie mythweb. Then create a template as follows.

Code: [Select]
pico /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/99mythweb

and insert

Code: [Select]
<Directory /home/e-smith/files/ibays/mythweb/html>
    php_admin_flag      allow_url_fopen on
</Directory>


It will end up at the end of httpd.conf but works fine.
Title: Web Directory - local/external access.
Post by: Franco on August 14, 2005, 05:47:19 AM
Nice to know Duncan!
And since you mentioned it, I just acquired a TV Tuner Card with hopes to MythTV it. Are you using it with SME?
If so what are your experiences, and what about a "how-to"? :-D

PS. I did see this post http://forums.contribs.org/index.php?topic=20467.msg81599#msg81599
Title: Web Directory - local/external access.
Post by: duncan on August 14, 2005, 06:49:27 AM
Quote from: "stuntshell"
Nice to know Duncan!
And since you mentioned it, I just acquired a TV Tuner Card with hopes to MythTV it. Are you using it with SME?
If so what are your experiences, and what about a "how-to"? :-D

PS. I did see this post http://forums.contribs.org/index.php?topic=20467.msg81599#msg81599


I have done a complete Mythtv install on 7alpha26. Was planning a full howto(Wiki perhaps) for the release of 7 final however - I am happy to share notes now if you like.
Title: Web Directory - local/external access.
Post by: Franco on August 14, 2005, 05:50:31 PM
Duncan,
I'll wait anxious for the How-To and 7 Final!
All I needed to know is that it works on SME finally, and I'm assuming you have the Web plugin working too (now secure with this thread).
In the meantime I'm playing with the knoppMyth combo, but I would rather not to dedicate the entire PC for that, when I can have SME and it's features added.

Thanks a lot.
Title: Web Directory - local/external access.
Post by: duncan on August 15, 2005, 10:42:01 AM
Quote from: "stuntshell"
Duncan,
I'll wait anxious for the How-To and 7 Final!


No worries. I have started a little wiki for my howtos. You can keep an eye on how I progress here. (http://www.goldtel.com.au/howto)

What type of card did you buy?
Title: Web Directory - local/external access.
Post by: Franco on August 15, 2005, 04:27:21 PM
I bought the famous WinTV and a PCChips with the Philips SAA7133. I'm seeing how they perform so I can invest on two more. I noticed that the cheap PcChips seems just as good for a fraction of the price. I'm shooting for multiple channel recordings  ;-)