Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
I just wanted to clarify what does a wildcard do.
Basically if i had wildcards enabled I'll be to point my browser to steven.portfolio.com and it will point to the same server as portfolio.com.
Correct. Wildcards match against the hostname. WWW is a hostname too.
Quote:
Originally Posted by linuxmandrake
So if I wanted to setup lots of subdomains, all I have to do is to configure my server to serve the appropriate page for each subdomain right?
Correct. You can use apache rewrite rules to redirect to specific pages, or set up virtual name based hosts each with their own web root directory. The virtual hosts is cleaner and easier to do IMHO.
Quote:
Originally Posted by linuxmandrake
What I want to do is have a domain for my home web server. I'm self hosting a site.
You've checked that your isp doesn't block port 80 and whether you have a dynamic or fixed ip address ?
Quote:
Originally Posted by linuxmandrake
Do all 123reg allow wildcards?
If you buy a domain name then you can have whatever DNS you want including wildcards. If you are using someone else's, like DynDNS then you get to use wildcards on their provided domain. But that will usually take the form *.host.domain.com where host is your chosen DynDNS name and domain.com is shared by many others.
Thanks alot I'm running a dynamic ip BUT o2/be there assign their ip based on a mac address. I've been on O2 for over a yr and my ip has NEVER changed! They charged an exra 5quid a month. I'm too cheap to pay lol.
oh I'll have to investigate that.
I've just spoke to 123reg they said that despite the wildcard I'll still need to buy subdomain (which are expensive!!). Is this true for all providers?
I was under the impression wild cards enable steven.portfolio.com but I don't need to register it because it's based on the wild card.
How expensive is expensive ?
I have my domain records hosted on nettica.com, it's only $10 per year for one domain. I actually have bulk hosting which is 50 domains for $50 a year.
You can add and change your records as often as you want and create subdomains (new hosts) for free.
I have all my sites hosted on my home server now, as it's cheaper. My mx records are pointing to gmail (also free).
They charging me 9.99 GBP which am assuming is per annum. They didn't say.
But technically the whole point of wild card is so that you don't need to register subdomain because it's based on the wildcard right? So if I wanted steven.portfolio.com , I don't need to purchase that as a subdomain right?
So you just have the one record then everything matches to the same IP
Last edited by linuxmandrake; 03-23-2010 at 02:24 PM.
If your on a budget you could set up 'steven' as a valid hostname in DNS pointing to the same IP. You can set up Apache to handle this 'hostname' as a 'subdomain' using a simple virtual host directive. It would see the hostheader 'steven.portfolio.com' and direct it accordingly.
For example:
Quote:
<VirtualHost *:80>
DocumentRoot /home/www/steven/htdocs
ServerName steven.portfolio.com
ServerAlias www.steven.portfolio.com
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/www/steven/htdocs>
Options -Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /home/www/steven/logs/error.log
CustomLog /home/www/steven/logs/apache.log combined
</VirtualHost>
Works just fine for a single host that appears in a browser as a subdomain would. Before you spend a penny on anything this may suit your needs. It's not the 'perfect' answer because individual hosts can't be dealt with (such as mail.steven.portfolio.com or www.steven.portfolio.com) - but it's a cheap way for dealing with just web traffic if it's all you need.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.