Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@e00:~# cat /etc/nginx/nginx.conf
- user www-data;
- worker_processes 1;
- error_log /var/log/nginx/error.log;
- pid /var/run/nginx.pid;
- events {
- worker_connections 1024;
- # multi_accept on;
- }
- http {
- include /etc/nginx/mime.types;
- access_log /var/log/nginx/access.log;
- sendfile on;
- #tcp_nopush on;
- #keepalive_timeout 0;
- keepalive_timeout 65;
- tcp_nodelay on;
- gzip on;
- gzip_disable "MSIE [1-6]\.(?!.*SV1)";
- include /etc/nginx/conf.d/*.conf;
- include /etc/nginx/sites-enabled/*;
- }
- # mail {
- # # See sample authentication script at:
- # # http://wiki.nginx.org/NginxImapAuthenticateWithApachePhpScript
- #
- # # auth_http localhost/auth.php;
- # # pop3_capabilities "TOP" "USER";
- # # imap_capabilities "IMAP4rev1" "UIDPLUS";
- #
- # server {
- # listen localhost:110;
- # protocol pop3;
- # proxy on;
- # }
- #
- # server {
- # listen localhost:143;
- # protocol imap;
- # proxy on;
- # }
- # }
- root@e00:~# cat /etc/nginx/sites-available/default
- # You may add here your
- # server {
- # ...
- # }
- # statements for each of your virtual hosts
- server {
- listen 80; ## listen for ipv4
- listen [::]:80 default ipv6only=on; ## listen for ipv6
- server_name e00.eu; #localhost
- #server_name_in_redirect off;
- access_log /var/log/nginx/localhost.access.log;
- location / {
- root /var/www;
- index index.php index.html index.htm;
- }
- location /doc {
- root /usr/share;
- autoindex on;
- allow 127.0.0.1;
- deny all;
- }
- location /images {
- root /usr/share;
- autoindex on;
- }
- location /phpmyadmin {
- root /usr/share/phpmyadmin;
- #
- # location ~ \.php$ {
- # include /etc/nginx/fastcgi_params;
- # fastcgi_pass 127.0.0.1:9000;
- # fastcgi_index index.php;
- # fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name;
- # }
- }
- #error_page 404 /404.html;
- # redirect server error pages to the static page /50x.html
- #
- #error_page 500 502 503 504 /50x.html;
- #location = /50x.html {
- # root /var/www/nginx-default;
- #}
- # proxy the PHP scripts to Apache listening on 127.0.0.1:80
- #
- #location ~ \.php$ {
- #proxy_pass http://127.0.0.1;
- #}
- # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
- #
- #location ~ \.php$ {
- #fastcgi_pass 127.0.0.1:9000;
- #fastcgi_index index.php;
- #fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
- #includefastcgi_params;
- #}
- location ~ \.php$ {
- include /etc/nginx/fastcgi_params;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name;
- }
- # deny access to .htaccess files, if Apache's document root
- # concurs with nginx's one
- #
- #location ~ /\.ht {
- #deny all;
- #}
- }
- # another virtual host using mix of IP-, name-, and port-based configuration
- #
- #server {
- #listen 8000;
- #listen somename:8080;
- #server_name somename alias another.alias;
- #location / {
- #root html;
- #index index.html index.htm;
- #}
- #}
- # HTTPS server
- #
- #server {
- #listen 443;
- #server_name localhost;
- #ssl on;
- #ssl_certificate cert.pem;
- #ssl_certificate_key cert.key;
- #ssl_session_timeout 5m;
- #ssl_protocols SSLv3 TLSv1;
- #ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
- #ssl_prefer_server_ciphers on;
- #location / {
- #root html;
- #index index.html index.htm;
- #}
- #}
- root@e00:~# cat /etc/nginx/sites-available/vps-admin.eu
- server {
- server_name www.vps-admin.eu vps-admin.eu;
- access_log /home/vps-admin.eu/logs/access.log;
- error_log /home/vps-admin.eu/logs/error.log;
- root /home/vps-admin.eu/htdocs;
- location / {
- index index.php index.html index.htm;
- }
- location ~ \.php$ {
- include /etc/nginx/fastcgi_params;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME /home/vps-admin.eu/htdocs$fastcgi_script_name;
- }
- }
- root@e00:~# cat /etc/nginx/sites-available/irc24.eu
- server {
- server_name www.irc24.eu irc24.eu;
- access_log /home/vps-admin.eu/logs/pma-access.log;
- error_log /home/vps-admin.eu/logs/pma-error.log;
- root /usr/share/phpmyadmin;
- location / {
- index index.php index.html index.htm;
- }
- location ~ \.php$ {
- include /etc/nginx/fastcgi_params;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME /usr/share/phpmyadmin$fastcgi_script_name;
- }
- }
- root@e00:~# ls -la /var/www
- total 12
- drwxr-xr-x 2 root root 4096 Feb 17 13:48 .
- drwxr-xr-x 14 root root 4096 Jan 4 19:17 ..
- -rw-r--r-- 1 root root 109 Feb 17 13:46 index.html
- lrwxrwxrwx 1 root root 22 Feb 17 13:48 phpmyadmin -> /usr/share/phpmyadmin/
- root@e00:~# ls -la /usr/share/php
- php5/ phpmyadmin/
- root@e00:~# ls -la /usr/share/phpmyadmin/
- total 1128
- drwxr-xr-x 8 root root 4096 Feb 17 01:32 .
- drwxr-xr-x 94 root root 4096 Feb 17 14:03 ..
- lrwxrwxrwx 1 root root 36 Feb 17 01:32 Documentation.html -> ../doc/phpmyadmin/Documentation.html
- -rw-r--r-- 1 root root 10829 Sep 7 2010 browse_foreigners.php
- -rw-r--r-- 1 root root 4354 Sep 7 2010 bs_change_mime_type.php
- -rw-r--r-- 1 root root 1797 Sep 7 2010 bs_disp_as_mime_type.php
- -rw-r--r-- 1 root root 2368 Sep 7 2010 bs_play_media.php
- -rw-r--r-- 1 root root 798 Sep 7 2010 calendar.php
- -rw-r--r-- 1 root root 3565 Sep 7 2010 changelog.php
- -rw-r--r-- 1 root root 473 Sep 7 2010 chk_rel.php
- -rw-r--r-- 1 root root 181 Jan 22 2012 config.footer.inc.php
- -rw-r--r-- 1 root root 181 Jan 22 2012 config.header.inc.php
- -rw-r--r-- 1 root root 1263 Jan 22 2012 config.inc.php
- -rw-r--r-- 1 root root 2162 Sep 7 2010 config.sample.inc.php
- -rw-r--r-- 1 root root 1458 Sep 7 2010 db_create.php
- -rw-r--r-- 1 root root 10415 Sep 7 2010 db_datadict.php
- -rw-r--r-- 1 root root 2336 Sep 7 2010 db_export.php
- -rw-r--r-- 1 root root 537 Sep 7 2010 db_import.php
- -rw-r--r-- 1 root root 27435 Sep 7 2010 db_operations.php
- -rw-r--r-- 1 root root 7389 Sep 7 2010 db_printview.php
- -rw-r--r-- 1 root root 30581 Sep 7 2010 db_qbe.php
- -rw-r--r-- 1 root root 13120 Sep 7 2010 db_search.php
- -rw-r--r-- 1 root root 980 Sep 7 2010 db_sql.php
- -rw-r--r-- 1 root root 25299 Jan 22 2012 db_structure.php
- -rw-r--r-- 1 root root 7277 Sep 7 2010 db_tracking.php
- lrwxrwxrwx 1 root root 26 Feb 17 01:32 docs.css -> ../doc/phpmyadmin/docs.css
- -rw-r--r-- 1 root root 25308 Sep 7 2010 export.php
- -rw-r--r-- 1 root root 18902 Sep 7 2010 favicon.ico
- -rw-r--r-- 1 root root 15614 Sep 7 2010 import.php
- -rw-r--r-- 1 root root 1077 Sep 7 2010 import_status.php
- -rw-r--r-- 1 root root 6789 Sep 7 2010 index.php
- drwxr-xr-x 3 root root 4096 Feb 17 01:32 js
- drwxr-xr-x 2 root root 4096 Feb 17 01:32 lang
- drwxr-xr-x 11 root root 4096 Feb 17 01:32 libraries
- -rw-r--r-- 1 root root 453 Sep 7 2010 license.php
- -rw-r--r-- 1 root root 13416 Jan 22 2012 main.php
- -rw-r--r-- 1 root root 27220 Sep 7 2010 navigation.php
- -rw-r--r-- 1 root root 27617 Sep 7 2010 pdf_pages.php
- -rw-r--r-- 1 root root 53336 Sep 7 2010 pdf_schema.php
- -rw-r--r-- 1 root root 366 Jan 22 2012 phpinfo.php
- -rw-r--r-- 1 root root 1079 Sep 7 2010 phpmyadmin.css.php
- drwxr-xr-x 5 root root 4096 Feb 17 01:31 pmd
- -rw-r--r-- 1 root root 9845 Sep 7 2010 pmd_common.php
- -rw-r--r-- 1 root root 1866 Sep 7 2010 pmd_display_field.php
- -rw-r--r-- 1 root root 18504 Sep 7 2010 pmd_general.php
- -rw-r--r-- 1 root root 829 Sep 7 2010 pmd_help.php
- -rw-r--r-- 1 root root 3762 Sep 7 2010 pmd_pdf.php
- -rw-r--r-- 1 root root 3994 Sep 7 2010 pmd_relation_new.php
- -rw-r--r-- 1 root root 1973 Sep 7 2010 pmd_relation_upd.php
- -rw-r--r-- 1 root root 2071 Sep 7 2010 pmd_save_pos.php
- -rw-r--r-- 1 root root 1063 Sep 7 2010 print.css
- -rw-r--r-- 1 root root 8252 Sep 7 2010 querywindow.php
- -rw-r--r-- 1 root root 7584 Sep 7 2010 server_binlog.php
- -rw-r--r-- 1 root root 2641 Sep 7 2010 server_collations.php
- -rw-r--r-- 1 root root 15336 Sep 7 2010 server_databases.php
- -rw-r--r-- 1 root root 4689 Sep 7 2010 server_engines.php
- -rw-r--r-- 1 root root 1615 Sep 7 2010 server_export.php
- -rw-r--r-- 1 root root 549 Sep 7 2010 server_import.php
- -rw-r--r-- 1 root root 98602 Sep 7 2010 server_privileges.php
- -rw-r--r-- 1 root root 2893 Sep 7 2010 server_processlist.php
- -rw-r--r-- 1 root root 16986 Sep 7 2010 server_replication.php
- -rw-r--r-- 1 root root 565 Sep 7 2010 server_sql.php
- -rw-r--r-- 1 root root 22147 Sep 7 2010 server_status.php
- -rw-r--r-- 1 root root 59483 Sep 7 2010 server_synchronize.php
- -rw-r--r-- 1 root root 2196 Sep 7 2010 server_variables.php
- drwxr-xr-x 4 root root 4096 Feb 17 01:32 setup
- -rw-r--r-- 1 root root 297 Sep 7 2010 show_config_errors.php
- -rw-r--r-- 1 root root 26846 Jan 22 2012 sql.php
- -rw-r--r-- 1 root root 8175 Sep 7 2010 tbl_addfield.php
- -rw-r--r-- 1 root root 7214 Sep 7 2010 tbl_alter.php
- -rw-r--r-- 1 root root 54017 Sep 7 2010 tbl_change.php
- -rw-r--r-- 1 root root 9781 Sep 7 2010 tbl_create.php
- -rw-r--r-- 1 root root 2573 Sep 7 2010 tbl_export.php
- -rw-r--r-- 1 root root 700 Sep 7 2010 tbl_import.php
- -rw-r--r-- 1 root root 7954 Sep 7 2010 tbl_indexes.php
- -rw-r--r-- 1 root root 2435 Sep 7 2010 tbl_move_copy.php
- -rw-r--r-- 1 root root 28324 Sep 7 2010 tbl_operations.php
- -rw-r--r-- 1 root root 16558 Jan 22 2012 tbl_printview.php
- -rw-r--r-- 1 root root 23511 Sep 7 2010 tbl_relation.php
- -rw-r--r-- 1 root root 15660 Jan 22 2012 tbl_replace.php
- -rw-r--r-- 1 root root 4825 Sep 7 2010 tbl_row_action.php
- -rw-r--r-- 1 root root 16286 Jan 22 2012 tbl_select.php
- -rw-r--r-- 1 root root 919 Sep 7 2010 tbl_sql.php
- -rw-r--r-- 1 root root 31945 Jan 22 2012 tbl_structure.php
- -rw-r--r-- 1 root root 26219 Jan 22 2012 tbl_tracking.php
- drwxr-xr-x 4 root root 4096 Feb 17 01:31 themes
- -rw-r--r-- 1 root root 1253 Sep 7 2010 themes.php
- -rw-r--r-- 1 root root 1625 Sep 7 2010 transformation_overview.php
- -rw-r--r-- 1 root root 3697 Jan 22 2012 transformation_wrapper.php
- lrwxrwxrwx 1 root root 34 Feb 17 01:32 translators.html -> ../doc/phpmyadmin/translators.html
- -rw-r--r-- 1 root root 4569 Sep 7 2010 user_password.php
- -rw-r--r-- 1 root root 5368 Sep 7 2010 view_create.php
- -rw-r--r-- 1 root root 1132 Sep 7 2010 webapp.php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement