ispCP - Board - Support
Subdomain -> Port - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega International Area (/forum-22.html)
+--- Forum: German Corner (/forum-26.html)
+--- Thread: Subdomain -> Port (/thread-5926.html)



Subdomain -> Port - Prototype - 03-04-2009 06:14 PM

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 =)


RE: Subdomain -> Port - RodNoc - 03-05-2009 04:12 AM

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


RE: Subdomain -> Port - Prototype - 03-05-2009 10:10 PM

(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


RE: Subdomain -> Port - Prototype - 03-06-2009 04:39 AM

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?


RE: Subdomain -> Port - RodNoc - 03-06-2009 09:56 PM

Per Firewall (Stichwort iptables) oder in der applikation das ganze nur an das lo-interface binden (wenn die applikation das kann)