fork download
  1. #user nobody;
  2. worker_processes 1;
  3.  
  4. #error_log logs/error.log;
  5. #error_log logs/error.log notice;
  6. #error_log logs/error.log info;
  7.  
  8. #pid logs/nginx.pid;
  9.  
  10.  
  11. events {
  12. worker_connections 1024;
  13. }
  14.  
  15.  
  16. http {
  17. #passenger_root /home/dev/.rvm/gems/ruby-2.2.3/gems/passenger-5.0.26;
  18. #passenger_ruby /home/dev/.rvm/gems/ruby-2.2.3/wrappers/ruby;
  19.  
  20. passenger_root /home/dev/.rvm/gems/ruby-2.2.0/gems/passenger-5.0.26;
  21. passenger_ruby /home/dev/.rvm/gems/ruby-2.2.0/wrappers/ruby;
  22.  
  23.  
  24. include mime.types;
  25. default_type application/octet-stream;
  26.  
  27. #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  28. # '$status $body_bytes_sent "$http_referer" '
  29. # '"$http_user_agent" "$http_x_forwarded_for"';
  30.  
  31. #access_log logs/access.log main;
  32.  
  33. sendfile on;
  34. #tcp_nopush on;
  35.  
  36. #keepalive_timeout 0;
  37. keepalive_timeout 65;
  38.  
  39. #gzip on;
  40.  
  41. server {
  42. listen 80;
  43. server_name localhost;
  44.  
  45. # Tell Nginx and Passenger where your app's 'public' directory is
  46. root ~/project/development/current/public;
  47.  
  48. # Turn on Passenger
  49. passenger_enabled on;
  50. rails_env development;
  51. #passenger_ruby /home/dev/.rvm/gems/ruby-2.2.3/wrappers/ruby;
  52. }
  53.  
  54. # another virtual host using mix of IP-, name-, and port-based configuration
  55. #
  56. #server {
  57. # listen 8000;
  58. # listen somename:8080;
  59. # server_name somename alias another.alias;
  60.  
  61. # location / {
  62. # root html;
  63. # index index.html index.htm;
  64. # }
  65. #}
  66.  
  67.  
  68. # HTTPS server
  69. #
  70. #server {
  71. # listen 443 ssl;
  72. # server_name localhost;
  73.  
  74. # ssl_certificate cert.pem;
  75. # ssl_certificate_key cert.key;
  76.  
  77. # ssl_session_cache shared:SSL:1m;
  78. # ssl_session_timeout 5m;
  79.  
  80. # ssl_ciphers HIGH:!aNULL:!MD5;
  81. # ssl_prefer_server_ciphers on;
  82.  
  83. # location / {
  84. # root html;
  85. # index index.html index.htm;
  86. # }
  87. #}
  88.  
  89. }
  90.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: illegal character: '#'
#user  nobody;
^
Main.java:1: error: class, interface, or enum expected
#user  nobody;
       ^
Main.java:2: error: class, interface, or enum expected
worker_processes  1;
^
Main.java:4: error: illegal character: '#'
#error_log  logs/error.log;
^
Main.java:4: error: class, interface, or enum expected
#error_log  logs/error.log;
            ^
Main.java:5: error: illegal character: '#'
#error_log  logs/error.log  notice;
^
Main.java:5: error: class, interface, or enum expected
#error_log  logs/error.log  notice;
            ^
Main.java:6: error: illegal character: '#'
#error_log  logs/error.log  info;
^
Main.java:6: error: class, interface, or enum expected
#error_log  logs/error.log  info;
            ^
Main.java:8: error: illegal character: '#'
#pid        logs/nginx.pid;
^
Main.java:8: error: class, interface, or enum expected
#pid        logs/nginx.pid;
            ^
Main.java:11: error: class, interface, or enum expected
events {
^
Main.java:13: error: class, interface, or enum expected
}
^
Main.java:17: error: illegal character: '#'
    #passenger_root /home/dev/.rvm/gems/ruby-2.2.3/gems/passenger-5.0.26;
    ^
Main.java:18: error: illegal character: '#'
    #passenger_ruby /home/dev/.rvm/gems/ruby-2.2.3/wrappers/ruby;
    ^
Main.java:18: error: class, interface, or enum expected
    #passenger_ruby /home/dev/.rvm/gems/ruby-2.2.3/wrappers/ruby;
                    ^
Main.java:20: error: class, interface, or enum expected
      passenger_root /home/dev/.rvm/gems/ruby-2.2.0/gems/passenger-5.0.26;
      ^
Main.java:21: error: class, interface, or enum expected
      passenger_ruby /home/dev/.rvm/gems/ruby-2.2.0/wrappers/ruby;
      ^
Main.java:24: error: class, interface, or enum expected
    include       mime.types;
    ^
Main.java:25: error: class, interface, or enum expected
    default_type  application/octet-stream;
    ^
Main.java:27: error: illegal character: '#'
    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
    ^
Main.java:27: error: unclosed character literal
    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                       ^
Main.java:27: error: illegal line end in character literal
    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                                                                             ^
Main.java:28: error: illegal character: '#'
    #                  '$status $body_bytes_sent "$http_referer" '
    ^
Main.java:28: error: unclosed character literal
    #                  '$status $body_bytes_sent "$http_referer" '
                       ^
Main.java:28: error: illegal line end in character literal
    #                  '$status $body_bytes_sent "$http_referer" '
                                                                 ^
Main.java:29: error: illegal character: '#'
    #                  '"$http_user_agent" "$http_x_forwarded_for"';
    ^
Main.java:29: error: unclosed character literal
    #                  '"$http_user_agent" "$http_x_forwarded_for"';
                       ^
Main.java:29: error: unclosed string literal
    #                  '"$http_user_agent" "$http_x_forwarded_for"';
                                                                 ^
Main.java:31: error: illegal character: '#'
    #access_log  logs/access.log  main;
    ^
Main.java:33: error: class, interface, or enum expected
    sendfile        on;
    ^
Main.java:34: error: illegal character: '#'
    #tcp_nopush     on;
    ^
Main.java:34: error: class, interface, or enum expected
    #tcp_nopush     on;
                    ^
Main.java:36: error: illegal character: '#'
    #keepalive_timeout  0;
    ^
Main.java:36: error: class, interface, or enum expected
    #keepalive_timeout  0;
                        ^
Main.java:37: error: class, interface, or enum expected
    keepalive_timeout  65;
    ^
Main.java:39: error: illegal character: '#'
    #gzip  on;
    ^
Main.java:39: error: class, interface, or enum expected
    #gzip  on;
           ^
Main.java:41: error: class, interface, or enum expected
    server {
    ^
Main.java:43: error: class, interface, or enum expected
      server_name localhost;
      ^
Main.java:45: error: illegal character: '#'
      # Tell Nginx and Passenger where your app's 'public' directory is
      ^
Main.java:45: error: class, interface, or enum expected
      # Tell Nginx and Passenger where your app's 'public' directory is
             ^
Main.java:45: error: unclosed character literal
      # Tell Nginx and Passenger where your app's 'public' directory is
                                               ^
Main.java:45: error: unclosed character literal
      # Tell Nginx and Passenger where your app's 'public' directory is
                                                  ^
Main.java:45: error: unclosed character literal
      # Tell Nginx and Passenger where your app's 'public' directory is
                                                         ^
Main.java:46: error: class, interface, or enum expected
      root ~/project/development/current/public;
                                               ^
Main.java:48: error: illegal character: '#'
      # Turn on Passenger
      ^
Main.java:48: error: class, interface, or enum expected
      # Turn on Passenger
             ^
Main.java:50: error: class, interface, or enum expected
      rails_env development;
      ^
Main.java:51: error: illegal character: '#'
      #passenger_ruby /home/dev/.rvm/gems/ruby-2.2.3/wrappers/ruby;
      ^
Main.java:51: error: class, interface, or enum expected
      #passenger_ruby /home/dev/.rvm/gems/ruby-2.2.3/wrappers/ruby;
                      ^
Main.java:52: error: class, interface, or enum expected
    }
    ^
Main.java:54: error: illegal character: '#'
    # another virtual host using mix of IP-, name-, and port-based configuration
    ^
Main.java:55: error: illegal character: '#'
    #
    ^
Main.java:56: error: illegal character: '#'
    #server {
    ^
Main.java:57: error: illegal character: '#'
    #    listen       8000;
    ^
Main.java:58: error: illegal character: '#'
    #    listen       somename:8080;
    ^
Main.java:58: error: class, interface, or enum expected
    #    listen       somename:8080;
                      ^
Main.java:59: error: illegal character: '#'
    #    server_name  somename  alias  another.alias;
    ^
Main.java:59: error: class, interface, or enum expected
    #    server_name  somename  alias  another.alias;
                      ^
Main.java:61: error: illegal character: '#'
    #    location / {
    ^
Main.java:61: error: class, interface, or enum expected
    #    location / {
                  ^
Main.java:62: error: illegal character: '#'
    #        root   html;
    ^
Main.java:63: error: illegal character: '#'
    #        index  index.html index.htm;
    ^
Main.java:63: error: class, interface, or enum expected
    #        index  index.html index.htm;
                    ^
Main.java:64: error: illegal character: '#'
    #    }
    ^
Main.java:65: error: illegal character: '#'
    #}
    ^
Main.java:68: error: illegal character: '#'
    # HTTPS server
    ^
Main.java:69: error: illegal character: '#'
    #
    ^
Main.java:70: error: illegal character: '#'
    #server {
    ^
Main.java:71: error: illegal character: '#'
    #    listen       443 ssl;
    ^
Main.java:72: error: illegal character: '#'
    #    server_name  localhost;
    ^
Main.java:72: error: class, interface, or enum expected
    #    server_name  localhost;
                      ^
Main.java:74: error: illegal character: '#'
    #    ssl_certificate      cert.pem;
    ^
Main.java:74: error: class, interface, or enum expected
    #    ssl_certificate      cert.pem;
                              ^
Main.java:75: error: illegal character: '#'
    #    ssl_certificate_key  cert.key;
    ^
Main.java:75: error: class, interface, or enum expected
    #    ssl_certificate_key  cert.key;
                              ^
Main.java:77: error: illegal character: '#'
    #    ssl_session_cache    shared:SSL:1m;
    ^
Main.java:77: error: class, interface, or enum expected
    #    ssl_session_cache    shared:SSL:1m;
                              ^
Main.java:78: error: illegal character: '#'
    #    ssl_session_timeout  5m;
    ^
Main.java:78: error: class, interface, or enum expected
    #    ssl_session_timeout  5m;
                              ^
Main.java:80: error: illegal character: '#'
    #    ssl_ciphers  HIGH:!aNULL:!MD5;
    ^
Main.java:80: error: class, interface, or enum expected
    #    ssl_ciphers  HIGH:!aNULL:!MD5;
                      ^
Main.java:81: error: illegal character: '#'
    #    ssl_prefer_server_ciphers  on;
    ^
Main.java:81: error: class, interface, or enum expected
    #    ssl_prefer_server_ciphers  on;
                                    ^
Main.java:83: error: illegal character: '#'
    #    location / {
    ^
Main.java:83: error: class, interface, or enum expected
    #    location / {
                  ^
Main.java:84: error: illegal character: '#'
    #        root   html;
    ^
Main.java:85: error: illegal character: '#'
    #        index  index.html index.htm;
    ^
Main.java:85: error: class, interface, or enum expected
    #        index  index.html index.htm;
                    ^
Main.java:86: error: illegal character: '#'
    #    }
    ^
Main.java:87: error: illegal character: '#'
    #}
    ^
Main.java:89: error: class, interface, or enum expected
}
^
93 errors
stdout
Standard output is empty