LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-22-2007, 02:20 PM   #1
officecase
Member
 
Registered: Jan 2007
Distribution: Centos, ArchLinux
Posts: 40

Rep: Reputation: 18
Need to remove port from http://www.example.com:3232


Hi I put up my own website from my house and my isp blocks port 80. So I am using port 3232. Now I show http://www.mysite.com:3232. I am looking for a solution that will remove the port 3232 off of the url. Do I use mod proxy, or mod redirect? Can anyone tell me the syntax to add to my httpd file? It is a virtual host.

Currently looks like http://www.mysite.com:3232
would like to make it look like http://www.mysite.com

Thanks in advance!
 
Old 07-22-2007, 02:48 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
you appear to not really understand what you're already doing... your isp blocks port 80, that's why you're using a non-standard port in the first place... the lack of a port means you are using port 80. and note this is something the client has to do, there's absolutely nothing you can do on the server said, as it's only by using that port, you can even reach the server...

Last edited by acid_kewpie; 07-22-2007 at 02:49 PM.
 
Old 07-22-2007, 10:13 PM   #3
officecase
Member
 
Registered: Jan 2007
Distribution: Centos, ArchLinux
Posts: 40

Original Poster
Rep: Reputation: 18
More info

Sorry I might have left out some info. I already have a redirect thru my dns provider that takes www.mysite.com and redirects it to www.myserver.com:3232. So it is reaching my server at http://www.myserver.com:3232. Now I want to mask that, cloak it. I can mask it from my dns provider but would rather try and do it on my side. Does this make more sence to you?
 
Old 07-23-2007, 01:28 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
no, it's still the same question, which fundamentally doesn't make sense. you *could* just use an html iframe to hide the nasty url's i guess...
 
Old 07-23-2007, 12:09 PM   #5
officecase
Member
 
Registered: Jan 2007
Distribution: Centos, ArchLinux
Posts: 40

Original Poster
Rep: Reputation: 18
One more try.

OKay let me try again. in my browser bar I see http:/www.mysite.com:3232. I know that it has to point to that to acually get to the server. all I want to do is hide the 3232 from showing up in the browser bar. Just like if you use mod rewite to take

http://www.mysite.com/?=user=gary/index.html
and change it to
http://www.mysite.com/gary23/index.html

My dns provider can mask it. Not show the 3232 part of the acualy address. I know all my links show www.mysite.com:3232 but in the browser bar it just shows http://www.mysite.com, when I turn on masking by my provider.

I want to know if I can mask it on the apache server side, instead of my DNS provider doing it.

I hope it dosent sound like that same thing again.
 
Old 07-23-2007, 12:18 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
yes, once this is *exactly* the same question. your dns provider has absolutely no role to play in this whatsoever. DNS is for ip addresses, not ports. as above, try an iframe.

turn it around... how does your apache server listening on port 3232 get the request in the frist place without that information in the url?

Last edited by acid_kewpie; 07-23-2007 at 12:23 PM.
 
Old 07-23-2007, 12:58 PM   #7
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
What your DNS provider probably does is runs a proxy on your domain name and then rewrites the destination to the port 3232. Why not just run apache on port 80?
 
Old 07-23-2007, 02:16 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
because the ISP blocks it.

in terms of IT "life advice" i'd say it's generally NOT worth running a server yourself if you can just use a hosted service. i pay less for my dreamhost accounts than i would to in electricity bills running an additional box...
 
Old 07-23-2007, 02:23 PM   #9
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Sorry, missed him saying the ISP blocks it... the only way then is to use a 3rd-party redirector or live with the port being shown. Also might want to keep in mind that if you get caught by your ISP, your internet will suddenly disappear (possibly permanently, depending on ISP).
 
Old 07-23-2007, 06:24 PM   #10
officecase
Member
 
Registered: Jan 2007
Distribution: Centos, ArchLinux
Posts: 40

Original Poster
Rep: Reputation: 18
Thanks

Yeah I wanna know how my DNS provider does that! Thanks for the info. Maybe I will just run it Https. I think my provider does not block that. I was hoping a mod proxy or mod rewrite would do the same trick.
 
Old 07-24-2007, 01:58 AM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
good grief... he doesn't do it. not like you're still clinging on to at least. what I assume Matir is suggesting is that a third party holds www.domain.com and then when someone connects to that page, they get a redirect to otherserver.domain.com:3232 which is *still* essnetially the same thing as what i was suggesting with an iframe, but with a redirect rather than an embedded page.

please just think about using a dedicated hosting company to hold these pages, it's clearly not worth your trouble hosting them yourself.
 
Old 07-24-2007, 11:08 AM   #12
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Some DNS providers do provide this as an additional service... but it's not really a DNS thing. I would guess it's done with a proxy, though it could be a frame as well. If the address changes, but just doesn't have the port in it, then it's definitely a proxy. In any case: if you have that service available to you, why not just use it if you're intent on hosting it yourself?
 
Old 07-25-2007, 12:37 AM   #13
officecase
Member
 
Registered: Jan 2007
Distribution: Centos, ArchLinux
Posts: 40

Original Poster
Rep: Reputation: 18
Host

I am. I just wanted to know if it was possable to do it in apache. I thought there would be a mod proxy that would take of it. After now looking at how cheep it is to get a $6 month server, I might just sign up.
 
Old 07-25-2007, 12:46 AM   #14
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
this basically all looks towards the fact that you don't understand what's involved in what you're asking for, and your knowledge of how protocols like ip, dns and http work aren't helping you understand why your questions keep getting the answers that they do. can i *please* suggest that you move on from this?
 
Old 07-25-2007, 02:05 PM   #15
officecase
Member
 
Registered: Jan 2007
Distribution: Centos, ArchLinux
Posts: 40

Original Poster
Rep: Reputation: 18
I still don't think you are grasping what it is I am trying to do. I know how DNS, Ip, and HTTP work. Do you understand how mod rewrite works?

That you can take a url that looks like http://www.somesite.com/catalog.php?...roduct_id=1234

And make it look like this. http://www.somesite.com/catalog/widgets-1234.html

That means you are changing the url in the browser but you still get to the same destination.

So on that premise. My question is, can I rewrite my url and change they way it looks so you don't see 3232? But you will still be sent to http://www.mysite.com:3232.

So far it looks like my answer is no. Nothing is impossible so there has to be a way.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FC6 ping on terminal works with www.google.com, not with http://www.google.com pxumsgdxpcvjm Linux - Networking 4 12-27-2006 03:36 PM
What's going on with http://www.mplayer.hu? ioan123 General 3 10-19-2005 01:19 PM
http://www.tigerdirect.com and others WarlockofVirgo General 2 11-02-2004 01:14 AM
http://www.fsmlabs.com Thaidog Linux - Distributions 1 05-25-2003 09:36 AM
http://www.granitecanyon.com/ Stimm LQ Suggestions & Feedback 2 10-10-2000 12:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration