?
Solved

remove port number from web application during redirect

Posted on 2013-12-20
3
Medium Priority
?
405 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 84

Accepted Solution

by:
Dave Baldwin earned 2000 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 84

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Suggested Courses

764 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