LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-01-2009, 08:46 AM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 484

Rep: Reputation: 30
web page with 'www1' extension ?


Dear Friend,

I have to create in my RHEL 5 server a website called "http://server.example.com/" . But now I want rename it as "http://www1.server.example.com/" . How can I add this 'www1' in my web page's url ?

Plz tell me the procedure ?
 
Old 06-01-2009, 08:55 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
You have an option called ServerName. Use that option to specify it also make sure you have a working DNS that will resolve it or make the changes in /etc/hosts file.
 
Old 06-01-2009, 09:12 AM   #3
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 484

Original Poster
Rep: Reputation: 30
web page with 'www1' extension

Thx Friend ,

Actually I already try to use the following lines :

#
# ServerName www.example.com:80
ServerName www1.server.example.com:80

But the page cannot be displayed . But when I use just "server.example.com" then it is working . My web server is my DNS server and my /etc/hosts is :

[root@localhost ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.0.244 www1.server.example.com


do u plz tell me where is the problem ?
 
Old 06-01-2009, 07:46 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Did you restart Apache?
 
Old 06-02-2009, 12:03 AM   #5
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 484

Original Poster
Rep: Reputation: 30
web page with 'www1' extension ?

Yes friend , I restart apache several times .. ..
 
Old 06-02-2009, 01:56 AM   #6
mamtasahai1
Member
 
Registered: Jan 2007
Location: India
Distribution: RHEL 5, Fedora 9, Solaris, FreeBSD
Posts: 52

Rep: Reputation: 15
1. Edit your /etc/httpd/conf/httpd.conf

<VirtualHost 192.168.0.244:80>
DocumentRoot /var/www/html
ServerName www.server.example.com
ServerAlias www1.server.example.com
</VirtualHost>

2. Restart httpd service

3. edit /etc/hosts
192.168.0.244 www.server.example.com www1.server.example.com

It is working fine in my configuration
Try this .....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
executing linux commands from web page and outputing it back to the web page ashes_sheldon Programming 9 02-28-2015 01:07 AM
Web query to execute commands and output it to a web page ! ashes_sheldon Linux - Newbie 1 05-08-2009 03:45 AM
LXer: Save a Web page for later with Read It Later extension LXer Syndicated Linux News 0 09-29-2008 12:50 PM
web page database access per page or per session? b0uncer Programming 6 01-13-2007 01:09 PM
Cant make web server run my local web page... Nik0s Linux - Newbie 22 10-08-2006 11:30 PM


All times are GMT -5. The time now is 12:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration