configure download urls in apache

Issues related to applications and software problems
Post Reply
imran_khan
Posts: 7
Joined: 2014/08/13 16:30:23

configure download urls in apache

Post by imran_khan » 2014/08/13 16:37:11

Hello,

I want to configure below urls in web server. When browse the below url then it will ask for download for both the urls. Also when we just browse http://serveripaddress/pqrs url it will not show any files. It will display file permission error or blank page. Please find the details for the same.

http://serveripaddress/pqrs/xyz1.exe
http://serveripaddress/pqrs/xyz2.exe

OS:- CentOS-6.5
Apache version:- 2.2.15

Thanks,
Imran Khan.

tigalch
QA Team
Posts: 522
Joined: 2012/06/23 17:28:41
Location: Austria

Re: configure download urls in apache

Post by tigalch » 2014/08/13 18:23:02

Hello and welcome to the fora,

do you have the content wher it should be? Meaning at /var/www/html/pqrs/
New users: take a look at this page

imran_khan
Posts: 7
Joined: 2014/08/13 16:30:23

Re: configure download urls in apache

Post by imran_khan » 2014/08/13 19:12:33

Hello,

Thanks for the reply.

Yes. Files xyz1.exe and xyz2.exe on the /var/www/html/pqrs/ path.

Thanks,
Imran Khan.

imran_khan
Posts: 7
Joined: 2014/08/13 16:30:23

Re: configure download urls in apache

Post by imran_khan » 2014/08/13 22:20:56

Hello,

Any help/suggestion?

Thanks,
Imran Khan.

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: configure download urls in apache

Post by TrevorH » 2014/08/13 23:18:13

If you get a permission error when trying to see the page index then perhaps you have indexes turned off for that directory? The files you place in that directory will of course need to be readable by the user that httpd runs under and the selinux contexts will need to be set correctly. The easiest way to ensure the selinux contexts are correct is to run restorecon -r /var/www/html
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply