please help with alias

Problems with the Windows version of XAMPP, questions, comments, and anything related.

please help with alias

Postby lightfighter_cook » 10. November 2009 16:41

Hello all,

I am setting up a web application that will allow the user to have a database driven home movie on demand. The coverart and movies are stored on an external hard drive. I've set up an alias in httpd-xampp like this:

Alias /movies_k "K:/movies/"
<Directory "K:/movies">
Order allow,deny
Allow from all
</Directory>

I've got the link to the images (coverart) like this:

<img src="http://localhost/<?php echo $row_search['alias']; ?>/<?php echo $row_search['art']; ?>.jpeg" />

and the link to the movies like this:

<a href="http://localhost/<?php echo $row_search['alias']; ?>/<?php echo $row_search['link']; ?>" target="_blank">


However, it is not working. What am I doing wrong or is there something else that I need to set up?


Thanks.
lightfighter_cook
 
Posts: 3
Joined: 10. November 2009 16:23

Re: please help with alias

Postby Izzy » 10. November 2009 17:51

lightfighter_cook wrote:However, it is not working.
What is not working and how do you know?

Exactly where in the httpd-xampp.conf file did you place your Alias Directive?

http://localhost/
Should that not be as defined in your Alias
http://localhost/movies_k

Any clues in the Apache log files?
\xampp\apache\logs\

Any screen error messages?

Any entries in the Windows Event Viewer?

BTW this external HD, how is it mounted, fixed or removable?
Does the system recognize the EHD as drive K?

What Windows OS?
Which XAMPP version?
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: please help with alias

Postby lightfighter_cook » 10. November 2009 18:12

Ok, just a quick update. I got it working, however, I can't get the movie link to work in IE. I had a typographical error on the extension in the database for the image file. I had it as a jpeg and it should have been jpg. The movie link extension is correct, but still does not work in IE, but it works fine in Firefox (has the popup box asking what I want to open the movie .avi file with) but in IE it takes me to a page that gives the message:

Internet Explorer cannot display the webpage

So, I guess I'm now wondering why it works in Firefox, but not IE?

I'm using XAMPP win32-1.7.0 and have put the alias on after

Alias /contrib "C:/xampp/contrib/"
<Directory "C:/xampp/contrib">
<IfModule php5_module>
<Files "webalizer.php">
php_admin_flag safe_mode off
</Files>
</IfModule>

Order deny,allow
Deny from all
Allow from localhost
</Directory>

on line 62.
lightfighter_cook
 
Posts: 3
Joined: 10. November 2009 16:23

Re: please help with alias

Postby Izzy » 10. November 2009 18:43

lightfighter_cook wrote:So, I guess I'm now wondering why it works in Firefox, but not IE?
See if your markup conforms to the standards by using this service and correcting any and all errors:
http://validator.w3.org/

Once your markup is validated then IE, Firefox, Opera and Uncle Tom Cobbly's web browser should all show your page correctly.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 42 guests