Nginx.conf _ Nginx + Php + Userdir + Phpmyadmin + Redmine (Passenger) - Pastebin

3
PASTEBIN | #1 paste tool since 2002 PASTEBIN search... create new paste trending pastes Don't like ads? PRO users don't see any ads ;-) nginx.conf : nginx + php + userdir + phpmyadmin + redmine (passenger) BY: A GUEST ON NOV 29TH, 2010 | SYNTAX: NONE | SIZE: 2.86 KB | HITS: 1,780 | EXPIRES: NEVER DOWNLOAD | RAW | EMBED | REPORT ABUSE | PRINT 0 0 Public Pastes Untitled 1 sec ago Untitled 1 min ago Untitled 6 sec ago Untitled 11 sec ago Untitled 16 sec ago Untitled 34 sec ago Untitled Java | 20 sec ago Untitled 21 sec ago create new paste tools api archive faq Like 45k sign up login my alerts my settings my profile Pastebin launched a little side project called HostCabi.net, check it out ;-) 1. 2. #user http; 3. worker_processes 4. 5. #error_log logs/error.log; 6. #error_log logs/error.log notice; 7. #error_log logs/error.log info; 8. 9. #pid logs/nginx.pid; 10. 11. 12. events { 13. worker_connections 1024; 14. } 15. 16. 17. http { 18. include mime.types; 19. default_type application/octetstream; 20. 21. passenger_root /opt/ruby1.8/lib/ruby/gems/1.8/gems/passenger3.0.0; 22. passenger_ruby /usr/bin/ruby; 23. passenger_max_pool_size 10; 24. 25. #log_format main '$remote_addr $remote_user [$time_local] "$request" ' 26. # '$status $body_bytes_sent "$http_referer" ' 27. # '"$http_user_agent" "$http_x_forwarded_for"'; 28. 29. #access_log logs/access.log main; 30. 31. sendfile on; 32. #tcp_nopush on; 33. 34. #keepalive_timeout 35. keepalive_timeout 65; 36. 37. #gzip on; 38. 39. server { 40. listen 80; 41. server_name localhost; 42. 43. #charset koi8r; 44. #access_log logs/host.access.log main; 45. 46. 47. # Userdir php 48. location ~ ^/~([^/]+)/(.+\.php)$ { 49. if (!f /home/$1/public_html/$2) { 50. rewrite ^ 404; 51. } 52. alias /home/$1/public_html/$2; 53. fastcgi_pass unix:/var/run/phpfpm/phpfpm.sock; 54. fastcgi_index index.php; 55. fastcgi_param SCRIPT_FILENAME $request_filename; 56. include fastcgi_params; 57. } 58. 59. # Userdir static

description

Nginx.conf _ Nginx + Php + Userdir + Phpmyadmin + Redmine (Passenger) -

Transcript of Nginx.conf _ Nginx + Php + Userdir + Phpmyadmin + Redmine (Passenger) - Pastebin

Page 1: Nginx.conf _ Nginx + Php + Userdir + Phpmyadmin + Redmine (Passenger) - Pastebin

P A S T E B I N | #1 paste tool since 2002

P A STEB I N search...

create new paste trending pastes

Don't like ads? PRO users don't see any ads ;-)

nginx.conf : nginx + php + userdir + phpmyadmin + redmine (passenger)BY: A GUEST ON NOV 29TH, 2010 | SYNTAX: NONE | SIZE: 2.86 KB | HITS: 1,780 | EXPIRES: NEVER

DOWNLOAD | RAW | EMBED | REPORT ABUSE | PRINT

0

0

Public Pastes

Untitled1 sec ago

Untitled1 min ago

Untitled6 sec ago

Untitled11 sec ago

Untitled16 sec ago

Untitled34 sec ago

UntitledJava | 20 sec ago

Untitled21 sec ago

create new paste tools api archive faq

Like 45k

sign up login my alerts my settings my profile

Pastebin launched a little side project called HostCabi.net, check it out ;-)

1.

2. #user http;

3. worker_processes 1;

4.

5. #error_log logs/error.log;

6. #error_log logs/error.log notice;

7. #error_log logs/error.log info;

8.

9. #pid logs/nginx.pid;

10.

11.

12. events

13. worker_connections 1024;

14.

15.

16.

17. http

18. include mime.types;

19. default_type application/octetstream;

20.

21. passenger_root /opt/ruby1.8/lib/ruby/gems/1.8/gems/passenger3.0.0;

22. passenger_ruby /usr/bin/ruby;

23. passenger_max_pool_size 10;

24.

25. #log_format main '$remote_addr $remote_user [$time_local] "$request" '

26. # '$status $body_bytes_sent "$http_referer" '

27. # '"$http_user_agent" "$http_x_forwarded_for"';

28.

29. #access_log logs/access.log main;

30.

31. sendfile on;

32. #tcp_nopush on;

33.

34. #keepalive_timeout 0;

35. keepalive_timeout 65;

36.

37. #gzip on;

38.

39. server

40. listen 80;

41. server_name localhost;

42.

43. #charset koi8r;

44. #access_log logs/host.access.log main;

45.

46.

47. # Userdir php

48. location ~ /~([/]+)/(.+\.php)$

49. if (!f /home/$1/public_html/$2)

50. rewrite 404;

51.

52. alias /home/$1/public_html/$2;

53. fastcgi_pass unix:/var/run/phpfpm/phpfpm.sock;

54. fastcgi_index index.php;

55. fastcgi_param SCRIPT_FILENAME $request_filename;

56. include fastcgi_params;

57.

58.

59. # Userdir static

Page 2: Nginx.conf _ Nginx + Php + Userdir + Phpmyadmin + Redmine (Passenger) - Pastebin

create a new version of this pasteRAW Paste Data

#user http;

worker_processes 1;

#error_log logs/error.log;

#error_log logs/error.log notice;

#error_log logs/error.log info;

#pid logs/nginx.pid;

events

worker_connections 1024;

http

include mime.types;

Pastebin.com Tools & Applications

60. location ~ /~([/]+)(/.*)?$

61. alias /home/$1/public_html$2;

62. autoindex on;

63.

64.

65. # PhpMyAdmin php

66. location ~ /phpmyadmin(.+\.php)$

67. alias phpmyadmin/$1;

68. fastcgi_pass unix:/var/run/phpfpm/phpfpm.sock;

69. fastcgi_index index.php;

70. fastcgi_param SCRIPT_FILENAME $request_filename;

71. include fastcgi_params;

72.

73.

74. # PhpMyAdmin static

75. location /phpmyadmin

76. alias phpmyadmin;

77. index index.php;

78.

79.

80. # Redmine (Passenger)

81. location /redmine

82. alias redmine/public;

83. passenger_enabled on;

84. passenger_base_uri redmine/public;

85.

86.

87. # Default php

88. location ~ (.+\.php)$

89. alias html/$1;

90. fastcgi_pass unix:/var/run/phpfpm/phpfpm.sock;

91. fastcgi_index index.php;

92. fastcgi_param SCRIPT_FILENAME $request_filename;

93. include fastcgi_params;

94.

95.

96. # Default static

97. location /

98. root html;

99. autoindex on;

100. index index.php index.html index.htm;

101.

102.

103.

104. # redirect server error pages to the static page /50x.html

105. #

106. error_page 500 502 503 504 /50x.html;

107. location = /50x.html

108. root html;

109.

110.

111.