access local html page through "file:///"
I installed LAMP
and I want to use ajax to write some client information into mysql server on the server side.
I want to test a anonymous browser.
however, with this browser, pages like "http://localhost/test.html" can't be accessed because the browser can't establish a connection to the server at localhost.
but it can access the page through: file:///var/www/html/test.html
however, my intention is to use ajax to write some client information into mysql server on the server side, so through file:/// can't achieve this goal,
are there any potential solutions for this?