But this requires server side coding. If you are allow to edit the Apache config, you can simply Enable the CORS (Cross-origin resource sharing) in the VirtualHost file as follow.
1. Enable the mod_headers in Apache by entering the following command in shell.
A client wants the old .aspx path could redirect the visitor to another URL. I don’t want to make the server to host a .aspx file so i add the redirection in the Nginx virtual host config.
Add the following lines insider the server { … }.
## Special redirect for the following
## old xxx.aspx to eureka.ykyuen.info
location /xxx.aspx {
return 301 $scheme://eureka.ykyuen.info;
}
HTTP Authentication is the easiest way to prevent anonymous user access to your website. If you are on Apache, you can refer to the following post. .htaccess – Setting Password For Your Web Folder
Update @ 2013-05-09: I am not very sure if this could really enable the Nginx Microcaching as i couldn’t find the HIT value in the HTTP response. Please feel free to comment and let us know if you got the solution. Thanks. =D
Enable Microcaching in Nginx could help making your website run much faster. Base on the setting we did in Nginx + PHP-FPM on Ubuntu Precise. Let’s edit the VirtualHost configuration file to enable Microcaching. Continue reading Nginx – Enable Microcaching→
I have heard Nginx for several years and finally i got the motive to start playing with it. Here the steps to install Nginx on Ubuntu 12.04.01 LTS server (Ubuntu Precise).
1. Update the repositories with the root privilege.
If you follow the New Relic instruction to setup the daemon. You will get all web applications as a single New Relic App named as PHP Application in the New Relic application console.
So how could we setup multiple New Relic Apps for different virtual hosts in Apache? Here you are.
1. Make sure you have enabled the Apache php5 module. If it is not enabled, enable it by the following command with root privilege.
In the 2nd DumpCamp meeting, Ronnie showed us a SAAS service called New Relic which provides Application Performance Management solution mainly for web applications and servers. It’s capabilities include but not limit to:
Performance analytics on Ruby, Rails, PHP, Java, .Net, Python applications
Real User Monitoring
Server Monitoring
SQL/NoSQL Performance Monitoring
Web Application Transaction Tracing
The Lite account is free and i tried it today. The setup is easy and straight forward. Just register an account online with some configurations on your web server through SSH. Then you could views your server and web application performance online. Continue reading DumpCamp – Introduction to New Relic→