Home>

I'm setting up a server with Sakura VPS.
I want to be able to display a web page by accessing the IP address of the server from a browser.

Currently, when I access the IP address of the server from a browser, I get an error.
"Not Found
The requested URL/was not found on this server. "

What I tried

The settings around Apache are set on the following page.
https://centossrv.com/apache.shtml

I looked at the Apache config file,
The document root is "/ var/www/html".
Looking at the contents, there were three files.
"(Host name)", "virtual.com"
Both files were "vi" and there was nothing inside.
Are these files installed by default?
If not, does it mean that it is displayed as above because there are only unwritten files in the public directory?
If i delete these, create a suitable file such as "test.html" and smell this public directory, will it be displayed properly?

Supplementary information (FW/tool version, etc.)

Please provide more detailed information here.

  • Answer # 1

    Are these files installed by default?

    yum (dnf)What is created when apache is installed in

    If not, does it mean that it is displayed as above because there are only unwritten files in the public directory?

    A file with nothing written on itEmpty fileIf it means, it's not
    If an empty file exists and you access it, you will see a blank page
    NotFoundMeans that the file specified by the URL (and apache settings) did not exist

    It depends on the apache settings,/If you access with, it will be displayed if index.html is placed

    If you delete these, create a suitable file such as "test.html" and smell this public directory, will it be displayed properly?

    As long as you place test.html in the document root, with or without other fileshttp (s): //*****.**/test.htmlindicated by