View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 13 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Web Issues
PostPosted: Sat Oct 08, 2005 10:05 pm 
Offline
Joined: Thu Oct 06, 2005 9:31 pm
Posts: 9
Okay. So here's my deal. I have a computer that's running like redhat 8. I've got Apache2, PHP, MySQL, phpmyadmin, squirrelmail, qmail, etc installed on it... basically it's my web/mail/ftp/everything else server.I don't have a TV card in this computer.

I have another system that I've got running KnoppMyth. took me all week to get everything working to this point (remote doesn't work, but I think I know what I need to do when I get home in the morning to make it work)

I have a linksys wireless router. Currently my KnoppMyth system is connected via wireless network. That may change soon.

The problem I'm having is that I can't route port 80's traffic to my myth box AND my web box.

So, basically, what I need to do is either

a) set up myth backend on my server (not really desirable, it's been stable and running the way it is for almost 3 years now with 0 modifications)

b) set up the web interfact to run on my server and update the backend on the myth computer.

c) set up apache so that when I go to certian directories, it automatically forwards off to the other computer.

I don't know what I need to do. Basically I want to be able to run my website, AND have access to my MythTV web frontend so I can set timers and stuff whenver, wherever.

I was thinking about setting up the mythweb directories as a NFS share and mount them from my web server, but I don't know enough about the programming in mythweb to know if that would even work.

Also, can I run myth backend on a computer without a TV card?

I'm sure I'll figure all of this out given a chance, but if someone already knows, please share. Thanks.

~Jon


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 08, 2005 10:56 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Did you think about using a different port on the outer side and forwarding it to port 80 on the MythTV box? Set the linksys to take anything sent to port external:8080 (or whatever port you want) and forward it to myth:80, just like you have it forward external:80 to webserver:80. This is the usual way of doing this type of thing with a single address being NATed to multiple machines after all.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 08, 2005 11:01 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
Ahhh... You can have Apache run on a different port.

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 09, 2005 4:09 am 
Offline
Joined: Sat Feb 26, 2005 9:05 am
Posts: 160
Location: Ipswich, UK
Yes, I did this a while ago. My old router wouldn't route an external port to a different internal port (i.e. external 8080 to port 80 on the myth box)

To do this I edited the apache config file:
Code:
nano /etc/apache/httpd.conf

Then searched for the port line (ctrl-w then type "Port 80")
Then changed that to whatever port I was forwarding in (i.e. 8080).
Then I restarted Apache
Code:
/etc/init.d/apache restart


Then I reconfigured my router to forward the port.

Mephi


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 09, 2005 8:53 am 
Offline
Joined: Thu Oct 06, 2005 9:31 pm
Posts: 9
my router won't let me redirect to different ports... I know I can run apache on a diferent port, but I'm kind of fond of just typing my domain and having it all work.

I may actually end up setting up my web server with tv card and an extra hard drive and make it the master backend, then I'll create a knoppmyth subdomain in apache and everything will work out good. Won't know until wednesday for sure though.

Also not sure if I want to pull the card outta this working box (well, the remote doesn't yet work, but everything else does) or if I want to try and see if I can't get the generic card that I got off tiger direct to work (it's a bt878 chip so it could work, but it's a really generic card, so if it does work, at $25 I'll have to get couple more :) )

But at least I know what I can do. You can't run a backend without a tv card, can you?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 09, 2005 10:05 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
fireyice01 wrote:
my router won't let me redirect to different ports...

Huhn? What Linksys model do you have? Even my cheap bottom of the line BEFSR41 will do this. Their terminology is a bit odd but it's in there...


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 09, 2005 3:36 pm 
Offline
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location: Brisbane, Queensland, Australia
Think outside the box people, or in this case, inside.

All you need to do is create a webpage on your main server with a frame set and have one of the frames point to you mythbox, duh.

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<HTML>
<HEAD>
      <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
      <TITLE>MythWeb</TITLE>
</HEAD>
   <frameset rows="6,*">
      <frame name="NoName" src="#" noresize>
      <frame name="NoName" src="http://192.168.0.100/mythweb" noresize>
      <noframes>
         <BODY BGCOLOR="#FFFFFF">
            <H1></H1>
         </BODY>
      </noframes>
   </frameset>
</HTML>

_________________
Girkers


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 09, 2005 9:47 pm 
Offline
Joined: Thu Oct 06, 2005 9:31 pm
Posts: 9
tjc wrote:
fireyice01 wrote:
my router won't let me redirect to different ports...

Huhn? What Linksys model do you have? Even my cheap bottom of the line BEFSR41 will do this. Their terminology is a bit odd but it's in there...


It's an older 802.11b router. I'll post the model number later... it seems to me that it will forward a range of ports, but not from one port to another.

Girkers wrote:
Think outside the box people, or in this case, inside.

All you need to do is create a webpage on your main server with a frame set and have one of the frames point to you mythbox, duh.

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<HTML>
<HEAD>
      <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
      <TITLE>MythWeb</TITLE>
</HEAD>
   <frameset rows="6,*">
      <frame name="NoName" src="#" noresize>
      <frame name="NoName" src="http://192.168.0.100/mythweb" noresize>
      <noframes>
         <BODY BGCOLOR="#FFFFFF">
            <H1></H1>
         </BODY>
      </noframes>
   </frameset>
</HTML>


I don't see that working. see, I have a domain, I host it off my server, which is redhat8. I just built a myth box. it's another computer. The idea you've presented would work, if I were only accessing my computer from a local network, but I connect remotely quite frequently.

A solution that I *think* might work though is using NFS.

I think the BEST overall solution to attain ALL my needs is to put the TV card in my server, set up a master backend and put an array of drives in there, mount them as an NFS share, and then run mythweb as a subdomain in conjunction with the rest of my site. Then I can run slave backends with NFS mounts in the other rooms, which will allow me to centralize my storage, and control everything from a central point. I'm also considoring doing a cluster setup.

Does anybody know how well xvid supports SMP? I have 4 computers all with 2.4+ ghz processors that I want to network together and cluster, but I'm not exactly sure how, as it appears mosix is not written for the latest kernel, and I don't know how well it would patch in... anyone?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 10, 2005 3:45 am 
Offline
Joined: Sun Jun 12, 2005 2:39 pm
Posts: 464
Location: UK
Have you tried updating the firmware on your router? They may have added the capability since you bought it.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 11, 2005 1:48 am 
Offline
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location: Brisbane, Queensland, Australia
I found a way around it.

I have a linux webserver running apache and what you need to setup is a reverse HTTP proxy.

I am using an SME server so I don't know how to do it by hand, but how my system works is that through my server software I create a virtual directory "/mythtv/" and point that to my mythtv box.

So when I go to mydomain.com/mythtv/ instead of going to my normal webserver it is passed onto my mythbox.

thank you thank you very much, just through money :lol:

_________________
Girkers


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 07, 2006 2:01 am 
Offline
Joined: Thu Oct 06, 2005 9:31 pm
Posts: 9
so, what I ended up doing was tossing a wintv-go plus card in my web/ftp/mail server, added a pair of hard drives, installed fedora core 4, installed all my servers and then installed mythtv on it, set this as the masterbackend, and have a secondary slave running in the living room. Now I can connect to my web server on port 80 to get to my mythweb and my regular website (via. virtual domains)

This seemed to me to be the most logical solution.


Top
 Profile  
 
PostPosted: Tue Jun 20, 2006 2:37 am 
Offline
Joined: Sun May 01, 2005 12:05 pm
Posts: 37
Location: Emeryville, CA
I had this same issue and solved it by just telling apache to forward requests to the mythbox.

Situation:
____________________
[You in a remote location.]
___|___
[Internet]
___|_______
[Your Router @real.ip.add.ress]
___|___________________|___________
[Your apache webserver]__[Your Mythbox]
[@192.168.0.2]________[@192.168.0.3]

Your webserver resolves to yourdomain.com, you' d like to access the Mythbox remotely, and your router currently sends ALL port 80 traffic to the apache webserver at 192.168.0.2. Most home routers are not smart enough to send some port 80 traffic to the apache webserver and some port 80 traffic to your mythbox. It all has to be forwarded to the same place. (No problem. Proxies to the rescue!)

In my case, I registered a domain for my mythbox. You could use a subdomain off yourdomain.com instead. Just make sure the usual DNS stuff is correct for the mythbox and go to the next step. Let's call the mythbox domain: mythdomain.com.

Then on the apache webserver @192.168.0.2, I added this virtual host entry:
Code:
<VirtualHost *:80>
ServerName www.mythdomain.com
ProxyPass / http://192.168.0.3/
ProxyPassReverse / http://192.168.0.3/
</VirtualHost>

<VirtualHost *:80>
ServerName mythdomain.com
ProxyPass / http://192.168.0.3/
ProxyPassReverse / http://192.168.0.3/
</VirtualHost>

Notice that there is a "/" after the ProxyPass and ProxyPassReverse entries. Don't leave those slashes out.

Restart apache and you should be in business. (Hey! That was easy!)

_________________
3 pcHDTV cards & Winegard SS-2000 Square Shooter Antenna, ethernet over power on R7.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 27, 2006 8:43 pm 
Offline
Joined: Tue Apr 13, 2004 6:51 pm
Posts: 890
Location: Groton, MA
I would love to do this...seems the apache config on my box doesnt have the proxy modules. can anyone help me get this added to my apache config.

_________________
R5F1 - Dell P4 2.4Ghz 500MB - PVR250 x 2 - GeForce FX 5200 - Onboard sound/NIC 80GB ATA/250GB ATA/400GB SATA


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu