PDA

View Full Version : Webmail Horde Query: login.php (yes it's DNS based ;) )



Inglix_the_Mad
10-22-2004, 10:18 AM
I have setup my subdomain which becomes webmail.address.com

Pruning the horde link from site manager, it comes up with login.php not found. Browsing around my directory w/ PuTTY it is in that directory.

torrin
10-22-2004, 10:31 AM
Don't you have to set up subdomains to go to a directory? I don't think you can set it up to go straight to a file. So set it up to go to a subdirectory and then in that subdirectory, put in an index file or a .htaccess file that will forward to the correct file.

I've already deleted this from my domain, but when I did it I had . . .

http://webmail.yourdomain.com set up to go to /var/www/html/webmail

and then in the webmail directory, I had an .htaccess file that looked like this.


redirect /index.html http://yourdomain.com/webmail/index.html
redirect /webmail/index.html http://yourdomain.com/cgi-bin/plugins/neomail/neomail.pl
By the way, that is 2 lines. redirect begins both. Of course replace yourdomain.com with your actual domain, also replace what it's redirected to.

I also had an index.html that redirected, just in case and a robots.txt to keep search engines out.

Worked nicely.