LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-05-2003, 11:26 AM   #1
nuzzy
Member
 
Registered: Aug 2001
Location: New Hampshire, USA
Distribution: Ubuntu 6.06 LTS
Posts: 204

Rep: Reputation: 31
Apache and aliases


First off, let me apologize if this is located on this board already. I couldn't find it. What I'm trying to do is have my Squirrelmail login.php come up when I type:

http://www.mydomain.com/squirrelmail

Right now I have to do this:

http://www.mydomain.com/squirrelmail/src/login.php

Can someone explain how to create this alias/shortcut so I can do the above?
 
Old 08-05-2003, 01:13 PM   #2
sopiaz57
Member
 
Registered: Apr 2003
Distribution: RH 8
Posts: 246

Rep: Reputation: 30
you can use an apache redirect directive. it goes something like this:


Redirect old-URI new-URL

so in your case try: /squirrelmail/src/login.php http://www.mydomain.com/squirrelmail


let me know if this works.

ttyl
 
Old 08-05-2003, 01:21 PM   #3
sopiaz57
Member
 
Registered: Apr 2003
Distribution: RH 8
Posts: 246

Rep: Reputation: 30
i dont know about the differences but the Alias directive works in the same way. you would do .



Alias /squirrelmail/src/login.php /squirrelmail



good luck, use this for some good refrence

http://httpd.apache.org/docs-project/
 
Old 08-05-2003, 01:44 PM   #4
nuzzy
Member
 
Registered: Aug 2001
Location: New Hampshire, USA
Distribution: Ubuntu 6.06 LTS
Posts: 204

Original Poster
Rep: Reputation: 31
Hi,

It just brins up the directory index or /squirrelmail/src and the login.php isn't showing up in there
 
Old 08-05-2003, 01:46 PM   #5
sopiaz57
Member
 
Registered: Apr 2003
Distribution: RH 8
Posts: 246

Rep: Reputation: 30
ok so the redirect or alias is working, your server just dosent recognize php files...

do a search for that login.php file, thats the one you want to load on default. try locate login.php.
 
Old 08-05-2003, 01:48 PM   #6
nuzzy
Member
 
Registered: Aug 2001
Location: New Hampshire, USA
Distribution: Ubuntu 6.06 LTS
Posts: 204

Original Poster
Rep: Reputation: 31
It's there, under /squirrelmail/src...it's hidden when I go to the URL though...
 
Old 08-05-2003, 02:07 PM   #7
nuzzy
Member
 
Registered: Aug 2001
Location: New Hampshire, USA
Distribution: Ubuntu 6.06 LTS
Posts: 204

Original Poster
Rep: Reputation: 31
let me give some more info...it may be a config problem:

Squirrelmail directory:

/var/www/htdocs/squirrelmail

Squirrelmail login .php location:

/var/www/htdocs/squirrelmail/src/login.php

This is on slack 9 and I installed both the apache2 and apache-php slack packages and then added squirrelmail, so I don't have any virtualservers set up other than the default server.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Aliases Red Squirrel Linux - Software 2 05-10-2005 06:58 PM
Aliases SkyeFyre Fedora 8 03-18-2005 07:35 PM
using aliases after doing su? NonSumPisces Linux - Newbie 2 08-15-2004 02:19 PM
See aliases gubak Linux - Newbie 0 08-04-2004 06:13 AM
what aliases do you use most? m0rl0ck Linux - General 17 02-12-2003 01:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration