I can't open the zabbix frontend URL via
http://zabbixservername/zabbix
Error 404 is given:
Not Found
The requested URL /zabbix was not found on this server.
Apache/2.4.7 (Ubuntu) Server at ipaddress Port 80
I'm running Ubuntu 14.04 LTS (GNU/Linux 3.13.0-27-generic x86_64)
I installed Zabbix server following Zabbix instructions for Ubuntu 14.04 at:
https://www.zabbix.com/documentation/2.2/manual/installation/install_from_packages
(bottom section of the page)
Though the follwowing file was not created:
/etc/apache2/conf.d/zabbix.conf
But I did edit regional settings in:
/etc/zabbix/apache.conf
After that I also copied the apache.conf to /etc/apache2/conf.d/zabbix.conf
restarted apache, but gave no result
Apache is running; when I go to http://zabbixservername/, I get the Apache default welcome page.
Also zabbix-server process is running on the server.
This is what the Apache acces.log says when I try to enter the frontend http://zabbixservername/zabbix
[04/Jun/2014:14:42:54 +0200] "GET /zabbix HTTP/1.1" 404 494 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36"
I would guess the problem lies somewhere within the communication between Apache and Zabbix?
If so... I don't know how to check and/or fix that...
Looking for some guidance here.
Additional information can be provided.
Though xunil's answer is right, let me correct it a little bit corresponding to the Ubuntu 14.04 and it's Apache 2.4
ln -s /etc/zabbix/apache.conf /etc/apache2/conf-available/zabbix.conf
It will put a symlink to the Apache config folder...
a2enconf zabbix.conf
service apache2 reload
...and these will reload the server to pick up the new configurations.
sudo cp /usr/share/doc/zabbix-frontend-php/examples/apache.conf /etc/apache2/conf-available/zabbix.conf
sudo a2enconf zabbix.conf
sudo service apache2 reload
Related
I am building a web application using Scotty and have installed GHC and Cabal using GHCup inside of WSL2 (Windows Subsystem for Linux 2). The application worked when I ran it natively on Windows. I am running the application on port 3000 and I am certain that the port is free. When I try to access the application through a browser from Windows, I receive an ERR_EMPTY_RESPONSE error. I have tried using both localhost:3000 and 127.0.1.1:3000, which is the output of wsl hostname -i, but I still get the same error. Even when I try to curl the application from inside WSL2, I get the same output. However, when I spin up an nginx server inside WSL2, it works as expected and I can access it from both WSL2 and Windows.
The interesting thing is that Scotty can see the requests and even thinks that it is successfully replying to them (as indicated by the 200 response codes):
Setting phasers to stun... (port 3000) (ctrl-c to quit)
GET /
Accept: */*
Status: 200 OK 0.000570011s
GET /
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Status: 200 OK 0.000548668s
GET /
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Status: 200 OK 0.000659229s
An old web app that uses Angular, gulp and coffee-script, and was running whit forever(NPM package).
When I click the sign-in button on the page, the page will refresh and show a 404 error, an apache access log saying
"POST /api/user/sign-in HTTP/1.1" 404 488 "http://localhost/sign-in" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36"
Need help, thanks
We didn't change any code or env, only use Nginx Proxy manager to take the place of Kemp load balancer.
I got the apache log because I copied all stuff and the database running it on localhost.
https://lists.apache.org/thread.html/3fd341a604c4e9eab39e7eaabbbac39c30101a022acc11dd09d7ebcb#%3Cannounce.tomcat.apache.org%3E
I have a tomcat 6.x, 7.x and 8.x and Jboss 7.2.x AS server running on windows. I created a web application under the webapps directory. I modified $TOMCAT_HOME/conf/web.xml and set the readonly parameter to false(by default, it is true). Then, I ran the exploit https://www.exploit-db.com/exploits/42966/ -- which is a python script that tries to upload a payload using HTTP PUT.
I ran the following command line :
python 42966.py -u http://localhost:9292/ExploitTest
I am getting a
1) Http 404 status(resource not found) from tomcat 8.0.x,
2) Http 400 status(bad request) from tomcat 6.x and
3) Http 400 status from tomcat 7.x.
I was expecting that running the above python exploit would result in HTTP 201 (newly created resource) in the tomcat server. What's wrong with the exploit ? OR did I not setup tomcat correctly for the vulnerability ? Is there a curl or java based or any other working exploit for this vulnerability that I can use to verify that my server is indeed vulnerable or not ?
Found the answer on https://www.peew.pw/blog/2017/10/9/new-vulnerability-same-old-tomcat-cve-2017-12615. Originally, the request is at https://bz.apache.org/bugzilla/show_bug.cgi?id=61542.
I used Burp Suite to craft the POC request per above link
PUT /1.jsp/ HTTP/1.1
Host: 192.168.3.103:8080
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
Referer: http://192.168.3.103:8080/examples/
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.8,zh-CN;q=0.6,zh;q=0.4,zh-TW;q=0.2
Cookie: JSESSIONID=A27674F21B3308B4D893205FD2E2BF94
Connection: close
Content-Length: 26
<% out.println("hello");%>
This does the trick!
Hello I am following this tutorial from the AngularJS documentation.
I am trying to use this approach for learning this.
You will need an http server running on your system. Mac and Linux machines typically have Apache pre-installed, but If you don't already have one installed, you can use node to run scripts/web-server.js, a simple bundled http server.
My server is started but the only things that happens on localhost:8000 (the port its running on) is that files get listed.
How do I deploy with Node.js?
When I navigate to localhost:8000 in my browser, this is my server log.
112-108-15:scripts phe$ ./web-server.js
Http Server running at http://localhost:8000/
GET / Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.65 Safari/537.36
GET / Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.65 Safari/537.36
As you can see the instruction, you need to run
node ./scripts/web-server.js
and go to http://localhost:8000/app/index.html.
If you have node installed, go to the directory where your angular application is and type:
scripts/webserver.js
hit enter and voila!
You can visit your site at:
http://localhost:8000/
If you don't have node installed, install node and then go to the first step.
You need to serve the files from a server on your local machine.
In the docs, it is mentioned you can serve the files from a node server.
However, if you do not want to download and run nodejs, and you are on Mac/Linux you have python already installed, you can also cd into the directory with index.html and run a python server - python -m SimpleHTTPServer 8000. This will serve the files on port 8000. Go to localhost:8000 and you will see your files being rendered.
And, if you want to deploy it to production on a remote machine, I came across deployment of nodejs & angular application deployment to production using ansible. I used the same to deploy my first app to production.
I have problem with my Debian server (Linux 2.6.32-5-686 i686) when I start apache2 everything seems ok but in a while apache executable start duplicating it self again and again to thew critical moment when server fall down. I don't know where is the problem. I'm getting lot of these messages in access.log
::1 - - [04/Aug/2013:10:16:45 +0200] "OPTIONS * HTTP/1.0" 200 136 "-" "Apache (internal dummy connection)"
Please have a look at the apache wiki regarding this dummy connections http://wiki.apache.org/httpd/InternalDummyConnection
Please revise your settings for MinSpareServers and MaxSpareServers.