cheatman
05-25-2001, 08:56 AM
Anyone know how i can get all my subdomains on an raq4 to point to domain.com ???
Any help is appreciated......
Any help is appreciated......
![]() | View Full Version : WildCards on an RAQ4 ? cheatman 05-25-2001, 08:56 AM Anyone know how i can get all my subdomains on an raq4 to point to domain.com ??? Any help is appreciated...... Chicken 05-26-2001, 01:58 AM Are you using the raq itself for DNS or ??? Starhost 05-26-2001, 07:00 AM <<EDIT FOR NOW>> TheRazor 05-26-2001, 08:54 AM Isn't it a security risk running dns on the server? :confused: cheatman 05-26-2001, 09:07 AM Yes i am using the dns on the raq.... Starhost 05-26-2001, 09:19 AM Originally posted by TheRazor Isn't it a security risk running dns on the server? :confused: If you keep your named up to date their isn't a problem. And when you are smart, you run named as a new user, which hasn't got root privlidges. Chicken 05-26-2001, 06:06 PM Originally posted by Starhost If you are using the raq's DNS I'll be able to give you a php script which you can use to automaticly create wildards for EVERY domain in the DNS (once a day). You'll need to run PHP as cgi. I don't know yet if I'm going to distribute it for free, or that I'll charge some money for it, like $25,= It makes a difference whether you can post this message on the board. If it is free, then this is fine, but otherwise this post will have to be removed. Félix C.Courtemanche 05-26-2001, 07:32 PM If you use your RAQ for the DNS, you will need to add the following file: /etc/named/pri.domain.com.include with this in it: *.domain.com. in a 123.123.123.123 You will then need to edit /etc/httpd/conf/httpd.conf and modify your domain like this: <VirtualHost 24.215.1.8> ServerName www.domain.com ServerAdmin admin DocumentRoot /home/sites/site123/web ServerAlias domain.com RewriteEngine on ServerAlias domain.com ... to <VirtualHost 123.123.123.123> ServerName www.domain.com ServerAdmin admin DocumentRoot /home/sites/site123/web ServerAlias domain.com RewriteEngine on ServerAlias *.domain.com domain.com Note that if you ever make changes to the site settings, this modification will disapear and you will need to do it again. If you use IP based hosting, simply put that domain alone on an IP and do the dns trick I mentionned. No need to modify the httpd.conf file. You might want to edit it furthermore to remove: RewriteCond %{HTTP_HOST} !^123.123.123.123(:80)?$ RewriteCond %{HTTP_HOST} !^www.domain.com(:80)?$ RewriteRule ^/(.*) http://www.domain.com/$1 [L,R] as this will redirect anything that is not www.yourdomain.com to www.yourdomain.com As you can see... its 'feasible' no more. Starhost 05-26-2001, 08:45 PM My script does the things you say automaticly. And chicken I still don't know whether to make it free or not, so you may remove my post. cheatman 05-26-2001, 08:54 PM Hey, i tried editing the pri.domain.com adn teh httpd.conf file, but that didn't work... Any other ideas Félix C.Courtemanche 05-27-2001, 02:15 AM I can assure you that it works when done properly. However you must know how to edit them properly and create the needed files, restart the affected services. If you are not serving your own dns, the first part of my message do not apply, only the reconfiguration of httpd.conf. Also not ethat even if it finally works, you may still not see it within one day because of your ISP's DNS cache. I suggest that you seek professional help to solve this permanantly :) Chicken 05-27-2001, 02:34 AM Originally posted by Starhost My script does the things you say automaticly. And chicken I still don't know whether to make it free or not, so you may remove my post. if you decide to sell it, put in up in the webhosting Advertising Forum. Sure you will get a few sales at least though opensource is always nice too!!! :D |