![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
|
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Feb 2005
Location: Los Angeles
Posts: 1,531
|
DNS wildcards for named.conf and Apache are working (almost)
I have about 4000 domains, and wanted to make a generic DNS and Apache configuration that will take ANY domain and park it without having to make an account and park it in Cpanel. This way, any idle domains I have can show ads and content (like godaddy does or any parking service does for that matter)
I have it working too...almost! 1) The configuration allows me to have any domain show a parking page, even if that domain doesn't have an account. This is working fine. 2) Strangely, this new configuration disables the file_get_contents function and the curl function(s). Does anyone have ideas on why file_get_contents would stop working with the configuration below? How do I fix it so I can park domains, and still have the file_get_contents function working? Here is the addition to my named.conf file: Code:
named.conf: zone "." { type master; file "/var/named/parking.db"; }; Code:
/var/named/parking.db: $TTL 604800 @ 86400 IN SOA ns1.ryd0.com. john.mccarthy.net. ( 1 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL IN NS . *. IN A 204.15.192.194 ;@ 86400 IN SOA ns1.ryd0.com. john.mccarthy.net. ( Code:
<VirtualHost 204.15.192.194:80> ServerAlias * DocumentRoot /home/photof/public_html ...more stuff deleted... </VirtualHost> Again, this is working, but it seems to disable file_get_contents. Can I make a second DNS zone that will fix this? Ideas anyone?
__________________
www.gimmiegirlproductions.com |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#2 |
ICQ:649699063
Industry Role:
Join Date: Mar 2003
Posts: 27,763
|
camperjohn64, you have 4000 domains? Congratulations, you are really big. These script questions are too complicated for me to answer. I will bump this thread, so maybe some else will answer.
__________________
Send me an email: [email protected] |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Feb 2005
Location: Los Angeles
Posts: 1,531
|
I used to be hosting 49,000 domains...ah the good old days...
The odd thing is about the above settings is that the generic "Host anything" DNS settings work fine, but it also re-routes the file_get_contents function back to itself. So there is obviously something that file_get_contents uses in the DNS to go outside, that is getting wildcarded to come back inside. It's like the zone "." command means "everything coming in AND going out" rather than just everything coming in.
__________________
www.gimmiegirlproductions.com |
![]() |
![]() ![]() ![]() ![]() |