LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 07:46 AM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 504

Rep: Reputation: 31
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, 07:55 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

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, 08:12 AM   #3
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 504

Original Poster
Rep: Reputation: 31
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, 06:46 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Did you restart Apache?
 
Old 06-01-2009, 11:03 PM   #5
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 504

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

Yes friend , I restart apache several times .. ..
 
Old 06-02-2009, 12: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



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 12:07 AM
Web query to execute commands and output it to a web page ! ashes_sheldon Linux - Newbie 1 05-08-2009 02:45 AM
LXer: Save a Web page for later with Read It Later extension LXer Syndicated Linux News 0 09-29-2008 11:50 AM
web page database access per page or per session? b0uncer Programming 6 01-13-2007 12:09 PM
Cant make web server run my local web page... Nik0s Linux - Newbie 22 10-08-2006 10:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:42 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
Open Source Consulting | Domain Registration