New answers tagged nginx
1
Since you are using Amazon, there is no reason for you to use your domain providers "invisible redirection". Instead you should:
Sign up for Amazon AWS Route 53 DNS Service
In route 53, create a "Hosted Zone" for your domain
Add an A records for both .yourdomain.com and www.yourdomain.com with the static IP address of your ec2 machine.
Go to your domain ...
2
I try this and it works for me:
Insert the script code below at the end of your HTML code, just before the tag:
<script>
var _gaq=[['_setAccount','UA-XXXXXXXX-X'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
...
0
It does sound like a base href problem, like Aaron suggests.
However I would never advise anyone to hardcode it to <base href="http://domain.tld"> - this is a pain if you ever want to copy a site to a staging environment or migrate the site elsewhere.
Instead the simple solution is to have the base href value resolve dynamically and ensure it is ...
1
Check the permissions for /home/username/rails-live/rails-app/public.
Make sure the user running nginx has read and execute permisssions.
0
Are you using dynamic base href property in your MODx templates if so set this to the actual website address you want to be the base href, then clear the MODx cache and you should be all set.
Aaron
1
If you server is running Nginx+Passeneger , you can start your Ruby application in the following way:
cd /home/user/rails_apps/user; sudo -u user /usr/local/bin/ruby /usr/local/bin/passenger start -p 12045 -e production &
sudo -u user /usr/local/bin/ruby /usr/local/bin/passenger start -p 12421 -e production & - the command for running is screen
...
2
The speed at which webservers deliver pages usually depends on how quickly they can pull the data together from where it is stored. Here are the places that data for a website is usually stored from fastest to slowest.
In memory
On disk
In a network cache
In a database
So even when you are talking about static files on disk, it would be faster to have ...
1
It depends on your definition of fastest. If you measure the time it takes for one page to completely render, then, yes, static HTML with embedded resources would be the fastest when fully optimized:
Deliver with compression (Gzip/Deflate).
Minimize code, avoid white-space, use the minimum tags and properties needed.
Spread resources across cookie-less ...
1
Assuming this is in the .htaccess in your document root, then you are almost there. You just seem to be missing the / (slash - directory separator) from the front of your destination URL (in the first example).
RewriteEngine On
RewriteRule ^somepage$ /abc/somepage.php [R=301,L]
The slash (or whatever is the base URL) is automatically removed from the ...
Top 50 recent answers are included
