Hello all,
I am having some trouble configuring my subdomains properly on Gentoo Linux with Apache 2.0.50.
Right now my current set up is as follows:
- Router (192.168.1.1)
- Main Computer (XP - 192.168.1.100)
- 'Server' (Gentoo - 192.168.1.102)
I have a NoIP address, for argument's sake, we can say it is:
example.no-ip.com.
I want to set the subdomains up so that:
example.no-ip.com points to /var/www/htdocs
-and-
test.example.no-ip.com points to /home/username/public_html/test
This is what my current setup looks like, I have no idea if this is correct or not.
NameVirtualHost 192.168.1.1:8080
<VirtualHost 192.168.1.1:8080>
ServerName example.no-ip.com:8080
DocumentRoot "/var/www/htdocs"
ServerAlias example
</VirtualHost>
<VirtualHost 192.168.1.1:8080>
ServerName test.example.no-ip.com:8080
DocumentRoot "/home/username/public_html/test"
ServerAlias test
</VirtualHost>
I've been trying to do this for hours to no avail, and it's really bothering me that I can't figure it out. Any help from any webmasters would be great.
Thanks
I am having some trouble configuring my subdomains properly on Gentoo Linux with Apache 2.0.50.
Right now my current set up is as follows:
- Router (192.168.1.1)
- Main Computer (XP - 192.168.1.100)
- 'Server' (Gentoo - 192.168.1.102)
I have a NoIP address, for argument's sake, we can say it is:
example.no-ip.com.
I want to set the subdomains up so that:
example.no-ip.com points to /var/www/htdocs
-and-
test.example.no-ip.com points to /home/username/public_html/test
This is what my current setup looks like, I have no idea if this is correct or not.
NameVirtualHost 192.168.1.1:8080
<VirtualHost 192.168.1.1:8080>
ServerName example.no-ip.com:8080
DocumentRoot "/var/www/htdocs"
ServerAlias example
</VirtualHost>
<VirtualHost 192.168.1.1:8080>
ServerName test.example.no-ip.com:8080
DocumentRoot "/home/username/public_html/test"
ServerAlias test
</VirtualHost>
I've been trying to do this for hours to no avail, and it's really bothering me that I can't figure it out. Any help from any webmasters would be great.
Thanks