NoPasswordApache

From WikiDLXTV
Revision as of 08:15, 2 June 2011 by Quidqod (Talk | contribs) (Created page with '== Disabling Username/Password authentication for the Apache Web Server == The default setting for WDLXTV's web server is to force authentication. You may want to switch this of…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Disabling Username/Password authentication for the Apache Web Server

The default setting for WDLXTV's web server is to force authentication. You may want to switch this off for various reasons, i.e. to server web pages. You can configure Apache on WDLXTV to not force authentication for particular web pages but I prefer just to switch it off for everything as I have no security issues with my setup.

Configurating

The method to set this up is to overwrite the default Apache config file by over mounting an alternative using the "mount -o bind" method. The default configuration file is /etc/apache2/sites-available/default

  • cp /etc/apache2/sites-available/default /conf/apache-default
  • Edit the file /conf/apache-default, in the <Location /> section, change the following:
<Location />
  Options Indexes FollowSymLinks MultiViews

  AuthType Digest
  AuthName "WDLXTV-Webend"
  AuthDigestDomain /
  AuthDigestProvider file
  AuthUserFile /conf/htpasswd
  Require valid-user

  Order allow,deny
  Allow from 127.0.0.1 www.live365.com live365.com gdata.youtube.com localhost
  Satisfy Any
</Location>

to:

<Location />
  Options Indexes FollowSymLinks MultiViews
  Order allow,deny
  Allow from all
  Satisfy Any
</Location></nowiki>
  • Create a new file /conf/S00user-script (it may already exist) putting the following into it:
#!/bin/sh
mount -o bind /conf/apache-default /etc/apache2/sites-available/default
  • Reboot WDTV (sync; sync; reboot)
  • And Apache should now not require a username/password.