LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   short form of http address (https://www.linuxquestions.org/questions/linux-newbie-8/short-form-of-http-address-4175490496/)

suribabu 01-07-2014 09:38 PM

short form of http address
 
my new mail login page address is :http://server.abn.com/webmail/src/login.php

but I want to acess my webmail login page like http://mail.abn.com

please tell me how to do.

ericson007 01-09-2014 06:14 AM

You must create a mail subdomain and point the fqdn to the ip.

lpwevers 01-09-2014 06:35 AM

Create a virtual host for your mail domain:
Code:

<VirtualHost *.80>
  ServerName server.abn.com
  DocumentRoot /var/www/html/webmail/src
  ErrorLog /var/log/httpd/error_log
  CustomLog /var/log/httpd/access_log combined
</VirtualHost>


descendant_command 01-09-2014 06:45 AM

You will also need it to contain
Code:

ServerName mail.abn.com
so it answers to the incoming requests for that name.

You should also look at how to enable SSL so your traffic is encrypted.


... and you can't point an DNS record at a port.

ericson007 01-09-2014 07:37 AM

Quote:

Originally Posted by descendant_command (Post 5094848)

... and you can't point an DNS record at a port.

Post corrected, sorry for the glitch.. to much ip and port responses. Thanks for pointing that out.


All times are GMT -5. The time now is 06:09 AM.