Solved

remove port number from web application during redirect

Posted on 2013-12-20
3
397 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 82

Accepted Solution

by:
Dave Baldwin earned 500 total points
Comment Utility
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
Comment Utility
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 82

Expert Comment

by:Dave Baldwin
Comment Utility
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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
The viewer will learn how to dynamically set the form action using jQuery.

772 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

12 Experts available now in Live!

Get 1:1 Help Now