http://www.howtoforge.com/perfect-server-debian-wheezy-nginx-bind-dovecot-ispconfig-3-p4 help What file I add this? Where does this add? Code: location /phpmyadmin { root /usr/share/; index index.php index.html index.htm; location ~ ^/phpmyadmin/(.+\.php)$ { try_files $uri =404; root /usr/share/; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $request_filename; include /etc/nginx/fastcgi_params; fastcgi_param PATH_INFO $fastcgi_script_name; fastcgi_buffer_size 128k; fastcgi_buffers 256 4k; fastcgi_busy_buffers_size 256k; fastcgi_temp_file_write_size 256k; fastcgi_intercept_errors on; } location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ { root /usr/share/; } } location /phpMyAdmin { rewrite ^/* /phpmyadmin last; } I have another problem The tutorial AIMS to default http://ip:8081/phpmyadmin http://ip:8081/webmail but I've directs ispconfig3 http://ip:8080/phpmyadmin [ERROR 404] http://ip:8080/webmail [ERROR 404] Where do I add this code? Code: location /squirrelmail { root /usr/share/; index index.php index.html index.htm; location ~ ^/squirrelmail/(.+\.php)$ { try_files $uri =404; root /usr/share/; include /etc/nginx/fastcgi_params; # To access SquirrelMail, the default user (like www-data on Debian/Ubuntu) must be used fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_buffer_size 128k; fastcgi_buffers 256 4k; fastcgi_busy_buffers_size 256k; fastcgi_temp_file_write_size 256k; } location ~* ^/squirrelmail/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ { root /usr/share/; } } location /webmail { rewrite ^/* /squirrelmail last; }
This code is optional and can be added in the nginx directives field of the website in ispconfig, as decsribed in the tutorial:
How to change the port, while retaining the domain? PHPMyAdmin URL =: 8081/phpmyadmin result: http://domain.tld:8080/sites/database_phpmyadmin.php?id=1 redirect http://domain.tld:8080/sites/:8081/phpmyadmin How do I change to 8081 keeping the domain? http://domain.tld:8081/phpmyadmin
but this only works for 1 default domain. How do I change the port to make it work for multiple domains?