Solved

remove port number from web application during redirect

Posted on 2013-12-20
3
400 Views
Last Modified: 2013-12-21
Hi,

I need to redirect my wepage of an application from http to https without providing the port number in apache.

Currently i have done like below
<VirtualHost *:80>
      Redirect /hello.html https://xxx.xx.xx.xxx:448/contact_us.html
</VirtualHost>

but i need something like

<VirtualHost *:80>
      Redirect /hello.html https://xxx.xx.xx.xxx/contact_us.html
</VirtualHost>


SSL Configuration

<VirtualHost xxx.xx.xx.xxx:448>
        SSLEngine on
        SSLCertificateFile /etc/apache2/ssl/apache.crt
        SSLCertificateKeyFile /etc/apache2/ssl/apache.key
        DocumentRoot /var/www/html
        ServerName 172.29.57.141
</VirtualHost>


What i need is that the server should not take the port in https url, as my site is running at root

http://xxx.xx.xx.xxx/
0
Comment
Question by:Rocking
  • 2
3 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 39732503
You need to change the port 448 to port 443.  443 is the 'normal' HTTPS port and will be used if you do Not select a port number.  http://en.wikipedia.org/wiki/HTTP_Secure

<VirtualHost xxx.xx.xx.xxx:443>
0
 

Author Comment

by:Rocking
ID: 39733223
is there any other way or mapping which can be done to set the port 448 as default port so that the port is not displayed
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39733231
No.  You would have to rewrite all the browsers and web servers in the world to change that.  Why is port 448 important?
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now