Page 1 of 1
Configure urls in web server
Posted: Tue Aug 12, 2014 11:49 pm
by imran_khan
Hello,
I want to configure below urls in nagios web server. When browse the below url then it will ask for download for both the urls. Also when we just browse
http://IPaddressofnagioserver/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://IPaddressofnagioserver/pqrs/xyz1.exe
http://IPaddressofnagioserver/pqrs/xyz2.exe
Nagios Core:- 4.0.7
OS:- CentOS-6.5
Apache version:- 2.2.15
Thanks,
Imran Khan.
Re: Configure urls in web server
Posted: Wed Aug 13, 2014 9:16 am
by eloyd
It is hard to understand exactly what you are asking for, but I think you are saying that you want to configure Apache to have a /pqrs alias that will take you to a page that lets you download the two EXE files. If that is correct, then that is an Apache question, not a Nagios question. You should ask on an Apache forum.
If I am not understanding you correctly, then I would need more information.
Re: Configure urls in web server
Posted: Wed Aug 13, 2014 2:32 pm
by imran_khan
Hello,
I have done the below changes on nagios server.
1). Created pqrs folder under /var/www/html/ folder.
2). Created .htaccess file under /var/www/html/pqrs folder.
3). Copied xyz1.exe and xyz2.exe in /var/www/html/pqrs folder.
4). Set the permission 711 of /var/www/html/pqrs folder.
5). Restarted Nagios and apache service.
Once above changes done getting below error while accessing Nagios interface (
http://domainname/nagios), due to this I have created thread in Nagios forum.
Error:-
Forbidden
You don’t have permission to access /nagios/ on this server.
Thanks,
Imran Khan.
Re: Configure urls in web server
Posted: Wed Aug 13, 2014 3:47 pm
by eloyd
You will most likely want to change protections to 755 and not 711, but that is not your problem.
Nothing that you wrote should have any affect on your server's ability to server nagios pages. So something else must be going on.
What happens if you
and restart apache?
Re: Configure urls in web server
Posted: Wed Aug 13, 2014 3:53 pm
by imran_khan
Hello,
When moved files/folder from /var/www/html/ to any other folder. I am able to access nagios.
But things is that I want to configure mentioned urls on IP Address of the server.
Thanks,
Imran Khan.
Re: Configure urls in web server
Posted: Wed Aug 13, 2014 5:21 pm
by imran_khan
Hello,
Any help/suggestion?
Thanks,
Imran Khan.
Re: Configure urls in web server
Posted: Thu Aug 14, 2014 7:59 pm
by sreinhardt
Are you moving files or directories? Could you post the command you ran that allowed the nagios pages to load, or even better that and several of the commands you ran before that?
Re: Configure urls in web server
Posted: Fri Aug 15, 2014 8:37 am
by eloyd
Spenser, I'd asked him to basically undo the changed he made by doing:
That seemed to fix the symptom, but not the problem.
Re: Configure urls in web server
Posted: Mon Aug 18, 2014 4:49 pm
by abrist
Did you create an apache vhost file for this? If so, can you post it?