Howdy all,
I've been working on trying to set up some sub domains on my web server. I'm working on getting everything I want installed/configured, and then am gonna expose it to the elements. It'll be hosting a website/blog for personal use (which will be the root directory, aka www.mydomain.com), and then have a few sub domains (just because that's how I want it, I know I could use directories as well) for various tools I use, such as svn, a dev directory, and whatever else I come up with. For the sake of just trying to get things working, I'll just go with the /var/www/dev/ directory right now, which I want to be accessible as dev.mydomain.com.
My setup is just a basic Debian 6 installation, of course with Apache2 and number mods/libs. I haven't changed any settings from default yet. I'm also not sure if my issues are arising from trying to access it on the local network, or if things just aren't working. I've spent some time Googleing, but nothing seems to be working.
I followed an example posted on a forum, which is as follow:
[cpp]NameVirtualHost *:80
<VirtualHost *:80>
ServerName localhost
DocumentRoot /var/www/
</VirtualHost>
<VirtualHost *:80>
ServerName dev.localhost
ServerAlias dev.*
DocumentRoot /var/www/dev/
</VirtualHost>[/cpp]
Again, I'm not sure if this is the proper way to do things, but it makes sense in my head if that's worth anything 😀 I posted this in the httpd.conf file as recommended (which was empty from default), and restarted the server. There were no errors, although there were some warnings. All the pages and directories loaded fine, but the sub domain did not work. Note at this time I'm connecting via "192.168.0.14". Do note that even with the default config I am getting the following:
... everything seems to be working just fine.
Anyways, I haven't done a whole lot of web server stuff before, so I really just don't know where to go from here. Just looking for some guidance
Thanks all,
- Jesse
I've been working on trying to set up some sub domains on my web server. I'm working on getting everything I want installed/configured, and then am gonna expose it to the elements. It'll be hosting a website/blog for personal use (which will be the root directory, aka www.mydomain.com), and then have a few sub domains (just because that's how I want it, I know I could use directories as well) for various tools I use, such as svn, a dev directory, and whatever else I come up with. For the sake of just trying to get things working, I'll just go with the /var/www/dev/ directory right now, which I want to be accessible as dev.mydomain.com.
My setup is just a basic Debian 6 installation, of course with Apache2 and number mods/libs. I haven't changed any settings from default yet. I'm also not sure if my issues are arising from trying to access it on the local network, or if things just aren't working. I've spent some time Googleing, but nothing seems to be working.
I followed an example posted on a forum, which is as follow:
[cpp]NameVirtualHost *:80
<VirtualHost *:80>
ServerName localhost
DocumentRoot /var/www/
</VirtualHost>
<VirtualHost *:80>
ServerName dev.localhost
ServerAlias dev.*
DocumentRoot /var/www/dev/
</VirtualHost>[/cpp]
Again, I'm not sure if this is the proper way to do things, but it makes sense in my head if that's worth anything 😀 I posted this in the httpd.conf file as recommended (which was empty from default), and restarted the server. There were no errors, although there were some warnings. All the pages and directories loaded fine, but the sub domain did not work. Note at this time I'm connecting via "192.168.0.14". Do note that even with the default config I am getting the following:
root@debian6: /etc/apache2# /etc/init.d/apache2 restart
Restarting web server: apache2apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
... everything seems to be working just fine.
Anyways, I haven't done a whole lot of web server stuff before, so I really just don't know where to go from here. Just looking for some guidance

Thanks all,
- Jesse