Go Back   PHP-Editors > Linux, Apache, MySQL > Apache Help

Apache Help Post any question relating to Apache here and hopefully someone can help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2008-12-22, 06:43 PM
Junior Member
 
Join Date: Dec 2008
Location: Olympia, WA
Posts: 1
buckminster1 is on a distinguished road
Unhappy Sub Domains point to router config

Hello all - I am another first-post noob. I have an Ubuntu 8.04 LAMP box with a fresh Apache install and a static ip. My domain (BuckysPalace.net > Home) works just fine, however any of my sub domains return with my homepage (outside of my network) or my router configuration screen if I access them inside the network.

I configure my sub domains by inserting a file named john.conf into /etc/apache2/sites-available/john.conf with the following info:
Code:
#/etc/apache2/sites-enabled/john.conf
<VirtualHost *>
ServerName john.buckyspalace.net
DocumentRoot /var/www/subdomains/john
</VirtualHost>
I then enable and restart apache with sudo a2ensite, etc...

What gives? Any suggestions?

Mark
BuckysPalace.net > Home
Reply With Quote
  #2 (permalink)  
Old 2008-12-29, 09:18 PM
Senior Member
 
Join Date: Dec 2004
Posts: 206
strasm is an unknown quantity at this point
Default

I believe you need this:

Code:
NameVirtualHost *:80

#/etc/apache2/sites-enabled/john.conf
<VirtualHost *:80>
ServerName john.buckyspalace.net
DocumentRoot /var/www/subdomains/john
</VirtualHost>
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.5 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.5 (a popular PHP IDE) and NuCoder 2.0 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Tags
lamp, router, ubuntu 8.04

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 05:17 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.