Difference between revisions of "HTTP"

From Things and Stuff Wiki
Jump to navigation Jump to search
Line 13: Line 13:
  
 
* [http://httpbin.org/ httpbin(1)] - HTTP Request & Response Service
 
* [http://httpbin.org/ httpbin(1)] - HTTP Request & Response Service
 +
 +
== User and group ==
 +
* [http://unix.stackexchange.com/questions/30879/what-user-should-apache-and-php-be-running-as-what-permissions-should-var-www What user should apache and PHP be running as? What permissions should /var/www files have?]
 +
 +
* http://serverfault.com/questions/260756/allow-scp-ssh-for-www-data-user
  
 
== Servers ==
 
== Servers ==

Revision as of 22:14, 20 July 2012


Basics

  • HTTPie is a CLI, cURL-like tool for humans

User and group

Servers

Nginx


Site folder location can vary.

/var/www
  debian
/etc/nginx/html
  arch linux

Site setup

Create 'Server Block' (vhost) config file in

/etc/nginx/sites-available

and later ln -s them in

/etc/nginx/sites-enabled

Enable logging in vhost conf;

error_log /var/log/nginx-vhostnamehere.log error;

Tools

Apache

Other

Performance