D
D
Dreaded2018-08-06 23:02:47
Nginx
Dreaded, 2018-08-06 23:02:47

Why does apache2 stub open instead of nginx hello?

I install ubuntu-18.04 on a virtual machine using vagrant.
Content of vagrantfile

Vagrant.configure("2") do |config|
  config.vm.box = "bento/ubuntu-18.04"
  config.vm.network "forwarded_port", guest: 80, host: 8080
  config.vm.synced_folder "C:/vagrant/projects", "/var/www"
end

I put nginx, php, mysql on the same virtual machine.
apache2 is disabled in autoload.
Here is what systemctl status nginx shows
● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
   <b>Active: active (running) </b>since Mon 2018-08-06 19:55:03 UTC; 5min ago
     Docs: man:nginx(8)
  Process: 1519 ExecStop=/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /run/ngin
  Process: 1528 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/
  Process: 1523 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited,
 Main PID: 1531 (nginx)
    Tasks: 2 (limit: 1135)
   CGroup: /system.slice/nginx.service
           ├─1531 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
           └─1533 nginx: worker process

Why when I open localhost:8080 in a browser I see the standard apache2 stub instead of the expected nginx hello? How to fix it?
This is my first time doing this, so please understand and forgive :)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
Jhn Doe from, 2018-08-06
@spbislanders

disable apache `sudo systemctl stop apache2`
but first, run htop, make sure there are apache2 processes there

D
Denis, 2018-08-07
@notwrite

Gee. are recruited by ad. ss -ltpn|grep 8080 says what?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question