LinuxQuestions.org
Visit Jeremy's Blog.
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 10-18-2013, 09:38 PM   #1
xmtxm
LQ Newbie
 
Registered: Nov 2011
Posts: 4

Rep: Reputation: Disabled
How to edit subdomain in ubuntu


I do not know how to pose the topic. But basically what I did was I created a subdomain in bind.
My lifelist file...

<VirtualHost *>
DocumentRoot /var/www/lifelist/index.html

ServerName lifelist.localhost

<Directory /var/www/lifelist/index.html/>
Options Indexes FollowSymLinks MultiViews +Includes
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>

The subdomain works...
lifelist.thelearningnerd.com
This may be a stupid quesetion. But how do I edit the index flie so I can work on the subdomain on my computer. I hope I'm making sense. For if I wanted to edit thelearningnerd I would edit the index file. But there is only one.
 
Old 10-18-2013, 10:30 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
You just put whichever files you want in the /var/www/lifelist/ directory and open a browser window and enter the path. Instead of 'index.html' at the end of the address, put the name of the new file. Are you using Apache? Not sure I'm understanding what you want?
 
Old 10-18-2013, 11:32 PM   #3
xmtxm
LQ Newbie
 
Registered: Nov 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
I do not know how to explain.
But what I mean is when I go to
lifelist.thelearningnerd.com
How do I edit the file so I can change the text of the subdomain?
Yes I'm using apache2.
 
Old 10-19-2013, 09:02 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
DocumentRoot /var/www/lifelist/index.html
If you have the above in your Apache configuration file and this is on a localhost, you would open a browser and enter:

and you would then see the index.html contents which usually show "IT WORKS". If you want learningnerd, you would create a directory under /var/www directory 'learningnerd' and then put files there (or you could put it in a sub-directory of lifelist) and then in the browser, type the path to it. Example:

I'm still not sure what you are looking for with 'change the text of the subdomain'?

Last edited by yancek; 10-19-2013 at 09:03 AM.
 
Old 10-19-2013, 05:34 PM   #5
xmtxm
LQ Newbie
 
Registered: Nov 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for the reply. However that is not what I mean. I found a forum topic which has the same question that I'm trying to get out.
http://ubuntuforums.org/showthread.php?t=1809834
 
  


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
Edit Plymouth, Ubuntu 11.10! Zssfssz Linux - Software 1 04-11-2012 04:22 AM
How can I edit files remotely from LAMP Ubuntu Server with Ubuntu Desktop? pyrospade Linux - Server 4 11-27-2010 03:07 AM
Edit your grub for ubuntu dins Linux - Newbie 1 11-04-2010 10:10 AM
Create webmail subdomain on Plesk master domain. (reserved subdomain) fruitwerks Linux - Server 0 08-11-2010 03:08 PM

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

All times are GMT -5. The time now is 07:51 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