This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The API accepts the page parameter and returns the pagination info in meta | |
{ | |
"messages": [ ... ], | |
"meta": { | |
"pagination": { | |
"total_pages": 3, | |
"current_page": 1, | |
"total_count": 55 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tested on nginx version 1.1.9, ubuntu 12.04 | |
-Command lines in order: | |
sudo touch /etc/nginx/site-availables/geoserver.conf | |
sudo vi /etc/nginx/site-availables/geoserver.conf | |
sudo ln -s /etc/nginx/site-availables/geoserver.conf /etc/nginx/site-enabled/geoserver.conf | |
sudo service nginx start | |
Content of geoserver.conf | |
server { |
NewerOlder