Have been searching for hours but still no fix...

It's not difficult to install myLounge Redirection, but sometimes it's quite tricky. Post your questions in here.

Moderator: Scooby

Have been searching for hours but still no fix...

Postby HollyRidge » Tue Mar 15, 2005 1:48 am

I cant for the life of me get this thing to work properly. I have uploaded the scripts just as they are into the public_html directory. This included the index.php, .htaccess, myred directory (ands its contents). I have wildcard dns enabled (yes I do this all the time) and I have added wildcard alias to httpd.conf file as well. Still no luck! If it helps I am on a cpanel server (I have tried 2 different ones, same result).

Here shows files are there...
Code: Select all
root@cp1fc1 [/home/domain/public_html]# ls -al
total 28
drwxr-x---  4 domain nobody  4096 Mar 14 19:21 ./
drwx--x--x  7 domain domain 4096 Mar 14 18:35 ../
drwxr-xr-x  2 domain domain 4096 Mar 14 18:35 cgi-bin/
-rw-r--r--  1 domain domain   74 Mar 14 18:33 .htaccess
-rw-r--r--  1 domain domain 5071 Mar 14 19:21 index.php
drwxr-xr-x  6 domain domain 4096 Mar 14 18:39 myred/
root@cp1fc1 [/home/domain/public_html]#


Here is a sample entry in httpd.conf...
Code: Select all
<VirtualHost 12.34.56.78>
ServerAlias domain.com *.domain.com
ServerAdmin webmaster@domain.com
DocumentRoot /home/domain/public_html
BytesLog domlogs/domain.com-bytes_log
<IfModule mod_php4.c>
php_admin_value open_basedir "/home/domain/:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
ServerName www.domain.com
User domain
Group domain
CustomLog domlogs/domain.com combined
Options -ExecCGI -Includes
ScriptAlias /cgi-bin/ /home/domain/public_html/cgi-bin/
</VirtualHost>


Here is a sample entry of dns zone...
Code: Select all
; Modified by Web Host Manager
; Zone File for domain.com
$TTL 14400
@       14440   IN      SOA     ns1.dnsns.com.  admin.dnsns.com.        (
                                        2005031404
                                        14400
                                        7200
                                        3600000
                                        86400
                                        )

domain.com.    14400   IN      NS      ns1.dnsns.com.
domain.com.    14400   IN      NS      ns2.dnsns.com.

domain.com.    14400   IN      A       12.34.56.78

localhost.domain.com.  14400   IN      A       127.0.0.1

domain.com.    14400   IN      MX      0       domain.com.

mail    14400   IN      CNAME   domain.com.
www     14400   IN      CNAME   domain.com.
ftp     14400   IN      CNAME   domain.com.
*.domain.com.       14400   IN      A       12.34.56.78
www.*.domain.com.   14400   IN      A       12.34.56.78


To add everything is working and resolving fine. When trying to access a subdomain created with this it goes to the "Your "real" startpage:" setting from the admin configuration like it doesnt even exist.
HollyRidge
 

Postby Guest » Tue Mar 15, 2005 9:39 am

A url would help ???
Guest
 

Postby HollyRidge » Tue Mar 15, 2005 3:04 pm

Providing a url is basically useless because the only access to the url has to come from our network. We have it set that way as we use this domain for our development work. This is why I explained exactly what it was doing and provided all the information as to its settings, etc..
HollyRidge
 

Postby Scooby » Tue Mar 15, 2005 4:04 pm

u dont need *.domain.com or www.*.domain.com as an A record

just put * 14400 IN A 12.34.56.78

Image
User avatar
Scooby
helpful guy
helpful guy
 
Posts: 252
Joined: Fri Jan 24, 2003 2:04 pm
Location: UK

Postby HollyRidge » Tue Mar 15, 2005 6:45 pm

Scooby,

The www.*.domain.com was something I added to make sure it worked both with and with the www in front.

Now as for the "*.domain.com. IN A 12.34.56.78" is the correct way for dns record however either way will work. What I am having is not a dns issue as it goes to the domain fine. Just the redirection does not work. What ever I put in the browser goes to the page listed in the admin configuration of the myred redirection under "Your "real" startpage:" whether it exist or it doesnt. That setting supposed to be for (according to the configuration setting) in case the subdomain actually does not exist in the redirection service. It goes to it even if the subdomain does exist in the redirection instead of forwarding to the proper location.

For example I created google.domain.com to forward to google.com and it still goes to the page listed there just as if it didnt exist in the redirection service.
HollyRidge
 

Postby Scooby » Tue Mar 15, 2005 7:37 pm

What do your logs show ?
User avatar
Scooby
helpful guy
helpful guy
 
Posts: 252
Joined: Fri Jan 24, 2003 2:04 pm
Location: UK

Postby HollyRidge » Wed Mar 16, 2005 12:42 am

Right now as you can also tell by the log entry I have the default page set to /myred/register.php. By reading the instructions that means it should go to the register page if the subdomain doesnt exist in the redirection. The problem here again is that it goes there even if it does exist. It never forwards to the url it supposed to.

Code: Select all
1.2.3.4 - - [15/Mar/2005:18:37:39 -0500] "GET / HTTP/1.1" 302 5 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"
1.2.3.4 - - [15/Mar/2005:18:37:39 -0500] "GET /myred/register.php HTTP/1.1" 200 3849 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"
HollyRidge
Newbie
Newbie
 
Posts: 3
Joined: Tue Mar 15, 2005 9:10 pm

Postby HollyRidge » Wed Mar 16, 2005 12:43 am

Also just to clearify that it isnt a browser issue, I have tried 2 different browsers. Both MSIE6 and Firefox have the same result.

I really want to get this thing to work but it just wont. Its probably something simple somewhere however for the life of me I can not find it.
HollyRidge
Newbie
Newbie
 
Posts: 3
Joined: Tue Mar 15, 2005 9:10 pm

Postby HollyRidge » Wed Mar 16, 2005 2:00 am

I just tested on an ensim based server and same result. Obviously I am missing something here somewhere that needs to be done however I still can not find it.
HollyRidge
Newbie
Newbie
 
Posts: 3
Joined: Tue Mar 15, 2005 9:10 pm

Postby Guest » Fri Mar 25, 2005 4:21 pm

Anyone??
Guest
 

http alias

Postby pierre » Wed May 11, 2005 8:42 pm

:D
I just had the same problem; all my subdomains were redirected to the main page; I eliminated my http alias and now work fine

Pierre
pierre
 


Return to Support

Who is online

Users browsing this forum: No registered users and 33 guests

cron