|
-
Mar 26th, 2008, 12:07 PM
#1
Thread Starter
Frenzied Member
shorten URL port 8080
hi my web address now is : cvs.testing.com:8080.. I would like to redirect/make the URL short without that 8080, is there a way to do that? I cannot enable port 80 cause I am using it for something else.
-
Mar 26th, 2008, 12:29 PM
#2
Re: shorten URL port 8080
Nope.
Rather, you could get something from :80 to redirect, but the :8080 needs to show up in the URL if that's where your web server is.
-
Mar 26th, 2008, 01:00 PM
#3
Re: shorten URL port 8080
You could use a host header to redirect to your website wthout the port displaying I believe. What kind of access do you have to your webserver?
Or even use an .htaccess file to do a url rewrite.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Mar 26th, 2008, 03:14 PM
#4
Re: shorten URL port 8080
Unfortunately, the headers bit is after the port has been processed, as web servers are listening to a given set of (or one) specific port(s). Most websites are :80 by default, which is hidden by the browser, so this means that http://www.vbforums.com:2345/ will not work, but :80 will go to the default vbforums.com.
-
Mar 26th, 2008, 03:21 PM
#5
Re: shorten URL port 8080
Hmm, I'll have to test that out as its been a while but the htaccess file with rewritting should do the trick.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Mar 26th, 2008, 03:22 PM
#6
Thread Starter
Frenzied Member
Re: shorten URL port 8080
medhak:
how can I do that to redirect?
-
Mar 26th, 2008, 03:25 PM
#7
Re: shorten URL port 8080
In post #2 hes saying that you cant.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Mar 26th, 2008, 03:51 PM
#8
Thread Starter
Frenzied Member
Re: shorten URL port 8080
OK, why do I have to type full path like http://cvs.testing.com:8080/viewcv.asp.net to get the page opened? When I just typed http://cvs.testing.com:8080/ it's not working.
-
Mar 26th, 2008, 04:28 PM
#9
Re: shorten URL port 8080
Is "viewcv.asp.net" the name of your page? You need to set it as the "default document" in your IIS settings.
-
Mar 26th, 2008, 04:34 PM
#10
Thread Starter
Frenzied Member
Re: shorten URL port 8080
mendhak, I did that. I don't know y now
-
Mar 26th, 2008, 04:35 PM
#11
Re: shorten URL port 8080
So what is viewcv.asp.net and why does it have an unusual extension? (.asp.net instead of .aspx, if it is a page)
-
Mar 26th, 2008, 04:56 PM
#12
Re: shorten URL port 8080
Probably an accidental renaming of the file/extension would be my guess.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Mar 26th, 2008, 05:35 PM
#13
Thread Starter
Frenzied Member
Re: shorten URL port 8080
lol I must have typed too fast, it's aspx. So back to the redirection, is there a way to hide that 8080? after it has been processed?
-
Mar 26th, 2008, 05:41 PM
#14
Re: shorten URL port 8080
Conventionally, no. I am going to try and see if RobDog's suggestion about rewriting via .htaccess works on my server.
-
Mar 26th, 2008, 05:46 PM
#15
Re: shorten URL port 8080
Ok, .htaccess gives you a SERVER_PORT property. You can use that in your mod_rewerite.
-
Mar 26th, 2008, 05:49 PM
#16
Re: shorten URL port 8080
No, no, I spoke too soon. 
You want to 'hide it'. So, you need to receive requests for cvs.testing.com. If the request matches cvs.testing.com, then you rewrite it to port 8080.
Code:
RewriteRule ^http://cvs.testing.com/(.*)$ http://cvs.testing.com:8080/$1
Does that look alright? I am not that experienced with mod_rewrites, because I hate Apache as it's causing my website all sorts of problems at the moment.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|