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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-05-2003, 11:26 AM
|
#1
|
Member
Registered: Aug 2001
Location: New Hampshire, USA
Distribution: Ubuntu 6.06 LTS
Posts: 204
Rep:
|
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?
|
|
|
08-05-2003, 01:13 PM
|
#2
|
Member
Registered: Apr 2003
Distribution: RH 8
Posts: 246
Rep:
|
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
|
|
|
08-05-2003, 01:21 PM
|
#3
|
Member
Registered: Apr 2003
Distribution: RH 8
Posts: 246
Rep:
|
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/
|
|
|
08-05-2003, 01:44 PM
|
#4
|
Member
Registered: Aug 2001
Location: New Hampshire, USA
Distribution: Ubuntu 6.06 LTS
Posts: 204
Original Poster
Rep:
|
Hi,
It just brins up the directory index or /squirrelmail/src and the login.php isn't showing up in there
|
|
|
08-05-2003, 01:46 PM
|
#5
|
Member
Registered: Apr 2003
Distribution: RH 8
Posts: 246
Rep:
|
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.
|
|
|
08-05-2003, 01:48 PM
|
#6
|
Member
Registered: Aug 2001
Location: New Hampshire, USA
Distribution: Ubuntu 6.06 LTS
Posts: 204
Original Poster
Rep:
|
It's there, under /squirrelmail/src...it's hidden when I go to the URL though...
|
|
|
08-05-2003, 02:07 PM
|
#7
|
Member
Registered: Aug 2001
Location: New Hampshire, USA
Distribution: Ubuntu 6.06 LTS
Posts: 204
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 06:08 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|