Koozali.org: home of the SME Server

Proxypass

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Proxypass
« on: January 11, 2012, 10:30:59 PM »
I know this is not a good question, but I can't do a proxypass and I need help.
I want http://mtrosemedia.tk/subsonic to redirect to mtrosemedia.tk:8089/subsonic
How do I do that with the proxypass command line? I am not understanding where mtrosemedia.tk/subsonic fits into the wiki instructions.

Also, where do I send write ups to see if they will be useful?
I've installed things like Subsonic, Tomcat 7, Java 7, and some other stuff, and felt they would be useful to the community.
I have also installed Red5 but haven't come up with the proper way to create a start up script.
All I have is:

Code: [Select]
#!/bin/bash
#
# For RedHat and cousins:
#
# chkconfig: 2345 85 85
# description: Red5 flash streaming server
# processname: red5
#

PROG=red5
RED5_HOME=/opt/red5/dist
DAEMON=$RED5_HOME/$PROG.sh
PIDFILE=/var/run/$PROG.pid

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/red5 ] && . /etc/sysconfig/red5

RETVAL=0

case “$1″ in
start)
echo -n $”Starting $PROG: ”
cd $RED5_HOME
$DAEMON >/dev/null 2>/dev/null &
RETVAL=$?
if [ $RETVAL -eq 0 ]; then
echo $! > $PIDFILE
touch /var/lock/subsys/$PROG
fi
[ $RETVAL -eq 0 ] && success $”$PROG startup” || failure $”$PROG startup”
echo
;;
stop)
echo -n $”Shutting down $PROG: ”
killproc -p $PIDFILE
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$PROG
;;
restart)
$0 stop
$0 start
;;
status)
status $PROG -p $PIDFILE
RETVAL=$?
;;
*)
echo $”Usage: $0 {start|stop|restart|status}”
RETVAL=1
esac

exit $RETVAL

This file is saved as "red5" in /etc/init.d/red5
However, there is no service found named "red5"

Thanks SME Team
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Proxypass
« Reply #1 on: January 11, 2012, 11:33:31 PM »
I know this is not a good question, but I can't do a proxypass and I need help.
I want http://mtrosemedia.tk/subsonic to redirect to mtrosemedia.tk:8089/subsonic
How do I do that with the proxypass command line? I am not understanding where mtrosemedia.tk/subsonic fits into the wiki instructions.
I think this post should get you started: http://forums.contribs.org/index.php/topic,47741.msg236017.html#msg236017

One tip for writing posts and getting the answers you need: Please try and put one problem per post with a matching subject. That way it is easier to attract the users that might now the solution to your problem. To me it seems the last questions are not related to proxypass and therefore others might not even look at them, although they might be able to help you with those problems.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Proxypass
« Reply #2 on: January 12, 2012, 03:58:14 AM »
This file is saved as "red5" in /etc/init.d/red5
However, there is no service found named "red5"

Perhaps that is because you do not have a symlink:

/etc/rc.d/rc7.d/S85red5 -> /etc/rc.d/init.d/e-smith-service

Create that via:

ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S85red5

Another possibility is a permissions problem. Make sure that you do:

chmod +x /etc/rc.d/init.d/red5

I suggest that you read the developers guide. And that you also follow catcus's advice of one problem per post.

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Re: Proxypass
« Reply #3 on: January 15, 2012, 03:08:55 PM »
I completely understand. The last questions, were not questions I assumed anyone would answer. I was mainly interested in the Proxypass setup, but I will be more clear. I will start another thread in relation to the red5 service, and give the details of my findings. Also, I will create new post for how I installed all of the different services I use.


By the way, that link worked like a charm Any way to get that in the wiki? It may be for simple passes from http://domain.com:4040/app --> http://domain.com/app
but it was very difficult to locate this information not just in the forums, but searching ProxPass through Google. Unless you have some background, it's hard to try to understand the terms.

Also, I changed the Description property to URL but I wasn't sure if the Description property held some key information, simiar to the description of a group being Domain Admin will cause all users to be admins. Please let me know if my understanding was correct.
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Proxypass
« Reply #4 on: January 15, 2012, 04:15:47 PM »
Also, I changed the Description property to URL but I wasn't sure if the Description property held some key information, simiar to the description of a group being Domain Admin will cause all users to be admins. Please let me know if my understanding was correct.
Description here is just what it says, AFAIK it only has a different meaning in the group mapping on the groups panel.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline mmccarn

  • *
  • 2,653
  • +10/-0
Re: Proxypass
« Reply #5 on: January 15, 2012, 04:45:36 PM »
Any way to get that in the wiki?
http://wiki.contribs.org/Help:Contents ;-)

I never put the original info into the wiki 'cause I couldn't figure out where to put it...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Proxypass
« Reply #6 on: January 15, 2012, 10:45:12 PM »
I never put the original info into the wiki 'cause I couldn't figure out where to put it...
Wouldn't this (http://wiki.contribs.org/SME_Server:Documentation:FAQ#Proxy_Pass) be the proper place? Perhaps the already existing content can be placed under a header like 'Proxypass a domain' and the other section under something like 'Proxypass a alias/directory/location'?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Proxypass
« Reply #7 on: January 16, 2012, 08:36:50 PM »
cactus, mmccarn & all

Quote
Wouldn't this (http://wiki.contribs.org/SME_Server:Documentation:FAQ#Proxy_Pass) be the proper place? Perhaps the already existing content can be placed under a header like 'Proxypass a domain' and the other section under something like 'Proxypass a alias/directory/location'?

Based on various forum posts I have updated
http://wiki.contribs.org/SME_Server:Documentation:FAQ#Proxy_Pass

Can people check the accuracy of what I have done.

There may be some corrections, layout improvements and additional information needed.
« Last Edit: January 16, 2012, 09:21:16 PM by raem »
...