This commit is contained in:
Kai Hendry
2014-12-04 17:41:45 +08:00
parent e733788b6b
commit cd1265d3d7
2 changed files with 7 additions and 3 deletions

View File

@@ -41,7 +41,7 @@
</div> </div>
</div> </div>
<button class="btn btn-primary btn-lg" id="b" onclick="submitPressed()">Fetch tweets</button> <button class="btn btn-primary btn-lg" id="b" type="submit">Fetch tweets</button>
</div> </div>
</form> </form>

View File

@@ -16,8 +16,8 @@ http {
server_name greptweet.com; server_name greptweet.com;
root /srv/http; root /srv/http;
charset utf-8; charset utf-8;
access_log /var/log/nginx/greptweet.access.log; access_log /srv/http/u/greptweet.access.log;
error_log /var/log/nginx/greptweet.error.log; error_log /srv/http/u/greptweet.error.log;
location / { location / {
index index.php index.html; index index.php index.html;
@@ -33,6 +33,10 @@ http {
expires 7d; expires 7d;
} }
location ~* \.(appcache)$ {
expires 30s;
}
location ~ \.php$ { location ~ \.php$ {
try_files $uri = 404; try_files $uri = 404;
fastcgi_pass unix:/run/php-fpm/php-fpm.sock; fastcgi_pass unix:/run/php-fpm/php-fpm.sock;