Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-21-2013, 03:19 PM   #1
LQ Newbie
Registered: Nov 2011
Posts: 4

Rep: Reputation: Disabled
Subdomain in apache localhost bind9 not working.

My subdomain use to work. However it would direct to
Now it does not work at all. My subdomain is
Many resources says edit the .httacess file. I do not have one in apache2.
I have tried many different things.
In /etc/apache2/sites-available/lifelist.thelearningnerd.db
<VirtualHost *:80>
NameVirtualHost *
ServerAdmin webmaster@localhost
ServerName lifelist.localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
<Directory /var/www/lifelist>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/var/www/">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all

ErrorLog ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined

In my hosts file I have this... localhost julia-OptiPlex-745

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Please help me. I have tried everything. I have expiremented, screamed at the computer.
Old 10-22-2013, 01:42 AM   #2
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,321

Rep: Reputation: 1701Reputation: 1701Reputation: 1701Reputation: 1701Reputation: 1701Reputation: 1701Reputation: 1701Reputation: 1701Reputation: 1701Reputation: 1701Reputation: 1701

You have defined one vhost (lifelist.localhost) in your configuration,. If you want to use and you need to add 2 more vhosts as follows. Also use once NameVirtualHost and change it to to match the vhosts definition:
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName lifelist.localhost
<VirtualHost *:80>
<VirtualHost *:80>

Last edited by bathory; 10-22-2013 at 01:45 AM.


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
[SOLVED] linux(in VirtualBox) apache http://localhost working, but not working zousheng Linux - Newbie 12 02-09-2013 07:21 PM
Configure subdomain alias in bind9 Gianni Valenti Linux - Networking 1 01-12-2012 09:52 AM
[SOLVED] bind9 log full of localhost queries meridius Linux - Server 6 04-05-2011 02:54 PM
Dynamic IP, Bind9, Subdomain Question skorpi0wn Linux - Networking 1 06-04-2009 02:22 PM
BIND9 - adding subdomain yah0m Linux - Networking 3 08-15-2008 08:55 PM > Forums > Linux Forums > Linux - Newbie

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

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