Tag Info

Hot answers tagged

4

There is no way to do what you are asking for in DNS. DNS simply resolves a hostname to an IP address there are no 'redirect' features If you want users to only use your app via www.example.com you will have to do it in the app using the rack rewrite tip you linked to.


4

That's not a configuration option, it's a Ruby code snippet that tells it to set copy_on_write_friendly if the GC object has that method. For example, in ruby mainline 1.9.2p290: 1.9.2p290 :003 > GC.copy_on_write_friendly NoMethodError: undefined method `copy_on_write_friendly' for GC:Module from (irb):3 from ...


3

You're not gonna like this.. Shared hosting is kinda dead. Nobody really does it anymore. You'd be better off offering a VPS service where you control the images that they're using. Oh wait. Amazon beat you to that one, and so did all the other companies like Heroku and EngineYard. The reason that VPSes are more in vogue this season and shared ...


3

Under bash, try: nohup ruby app.rb >> /log/file 2>&1 &


3

screen -L -dmS somename ruby app.rb This will start a screen process with the name of 'somename', with all output from the program being logged to screenlog.0 in the current working directory. If you ever want to get back the application's console for some reason, you can do screen -r somename.


2

Basically what happens when you type www.example.com in your browser is this. The browser looks up the IP address for the domain name from a DNS server. The browser sends a request for the particular resource to the given IP address (but also passes the human-readable address (the domain name), so that one IP address can serve many websites). The server ...


1

The name servers for the rackspace cloud are dns1.stabletransit.com and dns2.stabletransit.com For anyone struggling with this please read instructions here, it explains it well http://cloudservers.rackspacecloud.com/index.php/DNS_-_Creating_a_DNS_Record I can sympathize with the OP as I had to search for a while to figure this out, since if your ...


1

Step one: run passenger-install-apache2-module as root. This will install the passenger module, which is required. Step two: The passenger-install-apache2-module script will tell you what to add to httpd.conf. Add it. It should not affect any other applications you are running. Step three: For each Ruby on Rails or Sinatra app, configure it in ...


1

Assuming you're okay with changing your DNS servers, you can use DNSimple's "URL" DNS type. This will take care of your issue this at the DNS level. It is mentioned in this Heroku article on Avoiding Naked Domains.


1

Have a look at thin -h. By the default, it located at log/thin.log.


1

Thin logging is rather sparse and not very flexible compared to usual suspects like Apache / Nginx. You could enable debug level logging in the standard log file by passing --debug option in the command line during Thin's execution, or adding debug: yes option to Thin's application configuration .yml file. For more gory details, you can also add --trace / ...


1

Add a slash to the end of the root value. root /var/www/api/; Also, I recommend wrapping 'try_files' in a location. location / { try_files $uri/index.html $uri.html $uri @app; }


1

If you are on heroku the simplest way is a wildcard domain heroku addons:add custom_domains:wildcard This will redirect all subdomains *.example.com, including www to example.com. If you have root access to your name server you must add: www IN A xxx.xxx.xxx.xxx or * IN A xxx.xxx.xxx.xxx for a wildcard where xxx.xxx.xxx.xxx is ...


1

Users will have no idea that the connection is not encrypted between the proxy server and the backend server; their connection is only to the proxy. But, I can't blame your users for not trusting the encryption of form data outside of SSL - I wouldn't either! In any case, you shouldn't deploy an HTTPS-proxied-to-HTTP system in this way unless you're ...


1

I have one modification on the previous answer. proxy_pass http://127.0.0.1:5601; Replace by proxy_pass http://127.0.0.1:5601/;


1

Yep, haproxy's completely unnecessary. Unicorn does it's own "load balancing" between it's workers. When you move to needing multiple machines, you can use haproxy, but I strongly prefer an L3 solution such as IPVS.



Only top voted, non community-wiki answers of a minimum length are eligible