[mythtv-users] Hosting a web site on MythTV back end
gull at gull.us
Thu Nov 29 05:24:13 UTC 2007
On Nov 28, 2007, at 9:04 PM, David Segall wrote:
> I would like to host my web site on the MythTV back end with the
> changes to MythTV. I'm happy to change the Apache configuration file
> but not the directory structure of the server.
> My aim is to have requests to http://tv.example.com go to the password
> protected MythTV directory. Requests to http://www.example.com and
> http://example.com would go to my site's web pages.
Read up on the <VirtualHost> directive, in the Apache docs. What you
want to do is called "named-based virtual hosting" in the documentation.
The specifics will depend on your setup, but basically you put
in your config file, then you define a <VirtualHost> section for each
name, changing whatever directives you need to inside it. e.g.:
...and so on. Of course you can put the DocumentRoot for each server
wherever you want. You're not limited to ServerName and
DocumentRoot, either; you can put <Directory> sections and most other
server configuration settings inside a <VirtualHost> section.
More information about the mythtv-users