I'm logged in to my VPS through an SSH tunnel and have Apache installed on the server. Apache appears healthy and running.
sudo systemctl status apache2
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d └─apache2-systemd.conf
Active: active (running) since Thu 2018-02-08 20:20:51 UTC; 1 day 16h ago Docs: man:systemd-sysv-generator(8)
Process: 34352 ExecReload=/etc/init.d/apache2 reload (code=exited, status=0/SUCCESS) CGroup: / ├─20407 /usr/sbin/apache2 -k start ├─34370 /usr/sbin/apache2 -k start └─34371 /usr/sbin/apache2 -k startI'd like to do a simple test in the shell in order to visibly see the It Works! default message.
I run /var/www/html$
only receive:
-bash: No such file or directoryAny ideas?
Thanks in advance.
01 Answer
You have to use a command to connect to your URL like curl. Just entering the URL in bash does not work.
curl That should print the HTML in your terminal. If you want to interpret the HTML code you could use lynx which is a text-based web browser for shell.
lynx 0