Using PHP to output HTML instead now
This commit is contained in:
@@ -10,7 +10,7 @@ server {
|
|||||||
error_log /var/log/nginx/error.log;
|
error_log /var/log/nginx/error.log;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.html =404;
|
try_files $uri $uri/ /index.php /index.html =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>Test Page</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>Test Page</h1>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
16
var/www/index.php
Normal file
16
var/www/index.php
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<title>Today’s Date</title>
|
||||||
|
<meta http-equiv="content-type"
|
||||||
|
content="text/html; charset=utf-8"/>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<p>Today’s date (according to this web server) is
|
||||||
|
<?php
|
||||||
|
echo date('l, F dS Y.');
|
||||||
|
?>
|
||||||
|
</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user