To install the plugin:
a. Stop JIRA
b. Copy downloaded plugin jar files into the JIRA directory /WEB-INF/lib
c. Copy license file into JIRA’s /WEB-INF/classes
d. Start JIRA
To install the plugin:
a. Stop JIRA
b. Copy downloaded plugin jar files into the JIRA directory /WEB-INF/lib
c. Copy license file into JIRA’s /WEB-INF/classes
d. Start JIRA
Some time we need to check a browser version on client and if it is not satisfies do something.
Very simple code in jQuery:
var browser = $.browser; if ( (browser.msie && browser.version < 7.0) || (browser.mozilla && browser.version < 3.0) || (browser.opera && browser.version < 8.0) ) { $(location).attr('href', 'http://google.com'); }
So, we redirect to google.
This is lightweight and great web server. I like use it as a frontend web server on 80 port. So, let’s configure.
1. File conf/nginx.conf:
worker_processes 1; events { worker_connections 1024; } #[ debug | info | notice | warn | error | crit ] error_log logs/error.log info; http { include mime.types; default_type application/octet-stream; client_header_timeout 3m; client_body_timeout 3m; send_timeout 3m; client_header_buffer_size 1k; large_client_header_buffers 4 4k; output_buffers 1 32k; postpone_output 1460; sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 75 20; server_names_hash_bucket_size 64; access_log off; server { listen 80; server_name localhost; location / { root html; index index.html index.htm; } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } } #[ JIRA ] upstream jira { server 127.0.0.1:7000; } server { listen 80; server_name jira.yoursitename.com www.jira.yoursitename.com; location / { proxy_pass http://jira; include proxy.conf; } } #[ SVN ] upstream svn { server 127.0.0.1:8000; } server { listen 80; server_name svn.yoursitename.com www.svn.yoursitename.com; location / { proxy_pass http://svn; include proxy.conf; } } #[ IIS ] upstream iis { server 127.0.0.1:8080; } server { listen 80; server_name 404.yoursitename.com www.404.yoursitename.com otheryoursitename.com www.otheryoursitename.com ; location / { proxy_pass http://iis; include proxy.conf; } } }
2. File conf/proxy.conf:
proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; client_max_body_size 10m; client_body_buffer_size 128k; proxy_connect_timeout 90; proxy_send_timeout 90; proxy_read_timeout 90; proxy_buffer_size 4k; proxy_buffers 4 32k; proxy_busy_buffers_size 64k; proxy_temp_file_write_size 64k;
3. If you are using Windows OS, configure service launcher. I usually use Service Wrapper – creates a wrapper executable that can be used to host any executable as an Windows service.
nginx nginx nginx C:\SERVER\nginx\nginx.exe C:\SERVER\nginx\logs\ append Apache2.2 -p C:\SERVER\nginx -p C:\SERVER\nginx -s stop
Now run!
P.S. Also, you need to install Application Request Routing (ARR) for IIS.
To clone disk type in cmd like:
"%ProgramFiles%\Oracle\VirtualBox\VBoxManage.exe" clonevdi "F:\VIRTUAL_OS\WinXP_Default\WinXP_Default.vdi" "F:\VIRTUAL_OS\WinXP_Java\WinXP_Java.vdi"
So, you create new WinXP_Java image.
It’s time to install web-server. Apache, as you know, my favorite! I like Debian Linux with apt package manager.
Here must be simple.
1. Install Apache:
sudo apt-get install apache2
2. Configure Apache:
a) set ServerName:
ServerName localhost
b) set vhost:
<VirtualHost *:80> DocumentRoot /var/www/fte ServerName fte.com ServerAlias *.fte.com </VirtualHost>
3. Install MySQL server:
apt-get install mysql-server mysql-client
4. Install MySQL+PHP:
sudo apt-get install php5-common php5 libapache2-mod-php5 php5-cli php5-cgi php5-mysql
5. Restart Apache:
sudo /etc/init.d/apache2 restart
6. Install phpmyadmin
sudo apt-get install phpmyadmin
Good job!