Current time: 06-02-2024, 04:27 PM Hello There, Guest! (LoginRegister)


Post Reply 
Subdomain -> Port
Author Message
Prototype Offline


Posts: 3
Joined: Mar 2009
Reputation: 0
Post: #1
Subdomain -> Port
Hallo,

hoffe das Thema geht nicht völlig an ispCP vorbei.

Ich habe auf meinem Server eine Railsapplikation unter Port 1234 laufen.
Nun möchte ich, dass man über eine Subdomain auf diesen Port zugreifen kann.

Das Ganze soll so funzen:

sub.domain.tld -> Inhalt von localhost:1234

Ich meine man muss da irgendwas mit ProxyPass machen?!?
Habe mir schonmal eine Subdomain angelegt und ein wenig unter /etc/apache2/ispcp/sub.domain.tld rumgespielt. Bekomme dann aber einen 403 oder so.

Da auf dem Server nicht nur domain.tld sondern auch domain2.tld und domain3.tld laufen, wäre es weiterhin cool, wenn man _nur_ über die Subdomain sub.domain.tld darauf zugreifen kann. Es soll also ein direkter Zugriff via Angabe des Ports verhindert werden. Sollte dies nicht funktionieren, sollte es zumindest nicht möglich sein, über domain2.tld:1234 auf die Applikation zuzugreifen.

Ich hoffe man kann erahnen was ich meine.

Hoffe auf Hilfe und schonmal Danke im Voraus =)
03-04-2009 06:14 PM
Find all posts by this user Quote this message in a reply
RodNoc Offline
Junior Member
*

Posts: 64
Joined: Sep 2008
Reputation: 0
Post: #2
RE: Subdomain -> Port
Hi,

ich habe das bei meinem teamspeak mit diesen Configwerten gelöst:

Code:
ProxyRequests Off

    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>

    ProxyPass                    /  http://localhost:14534/
    ProxyPassReverse             /  http://localhost:14534/


Gruß
Dom
03-05-2009 04:12 AM
Find all posts by this user Quote this message in a reply
Prototype Offline


Posts: 3
Joined: Mar 2009
Reputation: 0
Post: #3
RE: Subdomain -> Port
(03-05-2009 04:12 AM)RodNoc Wrote:  Hi,

ich habe das bei meinem teamspeak mit diesen Configwerten gelöst:

Code:
ProxyRequests Off

    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>

    ProxyPass                    /  http://localhost:14534/
    ProxyPassReverse             /  http://localhost:14534/


Gruß
Dom

Werde das gleich zu hause ausprobieren. Hoffe es funzt Smile
03-05-2009 10:10 PM
Find all posts by this user Quote this message in a reply
Prototype Offline


Posts: 3
Joined: Mar 2009
Reputation: 0
Post: #4
RE: Subdomain -> Port
Jau cool hat gefunzt Smile
Gibt es nun noch eine möglichkeit die Ports für nicht-localhost-Adresse zu sperren?
Sodass man also gezwungen ist über diese Subdomain drauf zuzugreifen?
(This post was last modified: 03-06-2009 04:40 AM by Prototype.)
03-06-2009 04:39 AM
Find all posts by this user Quote this message in a reply
RodNoc Offline
Junior Member
*

Posts: 64
Joined: Sep 2008
Reputation: 0
Post: #5
RE: Subdomain -> Port
Per Firewall (Stichwort iptables) oder in der applikation das ganze nur an das lo-interface binden (wenn die applikation das kann)
03-06-2009 09:56 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)