| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 29559 | 2003-01-24 09:36:00 | Symbolic Links in Apache. | nz_liam (845) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 116310 | 2003-01-24 09:36:00 | Heres the deal. I have the Win32 Apache 2.0 running fine. C:\Program Files\Apache Group\Apache2\htdocs is set as the root folder. However I want to also put C:\Program Files\GuildFTPd\sys.log.txt online as well (which is outside the root folder). How would I go about doing this (an example would be great)? Cheers Liam |
nz_liam (845) | ||
| 116311 | 2003-01-24 10:22:00 | You can alias a directory simply. In the httpd.conf file add the following under the "DocumentRoot" entry: Alias "/anotherdirectory" "C:/Program Files/GuildFTPd" You can then access the "GuildFTPd" directory as "anotherdirectory". |
wuppo (41) | ||
| 116312 | 2003-01-24 10:27:00 | > You can alias a directory simply. In the httpd.conf > file add the following under the "DocumentRoot" > entry: > > Alias "/anotherdirectory" "C:/Program > Files/GuildFTPd" > > You can then access the "GuildFTPd" directory as > "anotherdirectory". Ok, so how would I alais just the file, I only want the txt file to be online, not the whole directory. Cheers Liam |
nz_liam (845) | ||
| 116313 | 2003-01-24 10:31:00 | I suppose I could put a .htaccess file in the guild ftp directory first, then I could make only the txt file readable, but I dont know how to make .htaccess files.... | nz_liam (845) | ||
| 116314 | 2003-01-24 10:57:00 | Take to long to explain so learn all about it the same way I did. Ken Coar is the king of .htaccess apache-server.com |
Stumped Badly (348) | ||
| 116315 | 2003-01-24 11:17:00 | Well, I tried Alias "/ftp" "C:/Program Files/GuildFTPd" And now I get a 403 (forbidden), why is this, I mean you cant do a chmod in windows so the directory should be global readable shouldent it? See the 403 @ nzliam.kicks-ass.net |
nz_liam (845) | ||
| 116316 | 2003-01-24 11:59:00 | Ok, well, I seem to have solved that problem, I can now access the txt file through nzliam.kicks-ass.net Now I have to make that .htaccess file to stop the rest of the files in the directory being read.... |
nz_liam (845) | ||
| 116317 | 2003-01-24 12:02:00 | Are you sure the syntax is absolutely correct. Whenever you change the httpd.conf file, you can run the following command from the Apache binary directory (C:\Program Files\Apache Group\Apache by default) to determine whether you have created any syntax errors. Apache -t You can also choose Start➪Programs➪Apache httpd Server➪Configure ApacheServer➪Test Configuration option to do the same. If an error is found, you can fix it before restarting the server with the Apache -k restart command. |
Stumped Badly (348) | ||
| 116318 | 2003-01-24 12:11:00 | Sure is, thats me. 01/25/2003 01:06:03 {2} - [318] : Anonymous user logged in: <nzliam.kicks-ass.net> : 210.54.113.120 |
Stumped Badly (348) | ||
| 116319 | 2003-01-24 12:14:00 | The syntax is correct, the first time I typed it in I made a mistake, then I tried to restart apache and I woudn't, I then found the error corrected it and apache started fine. | nz_liam (845) | ||
| 1 2 | |||||