similar to: My Host

Displaying 20 results from an estimated 300 matches similar to: "My Host"

2009 Jun 25
1
request.host, proxy chains and HTTP_X_FORWARDED_HOST
Hi, We''ve an application that uses url_for in controllers and views. In views, url_for generates a relative url (as if :only_path where used). All is fine there. However, in controllers, url_for generates a full url, with the host name. This causes problems when we have a chain of Apache proxy servers: My Browser ---> Proxy 1 ----> Proxy 2 ----> Phusion Deployment Server. In
2012 Nov 01
2
how to use localtunnel gem ?
Hi all, I read about localtunnel gem . As per my knowledge , local tunnel generate a URL , which can be used globally . I wish to use localtunnel for my knowledge. But now my question is raised . Q is we have to start rails server port 3000 on another terminal ? or localtunnel server is enough for our development server which we have already started on 3000 port ?. Q Can any one
2018 Nov 30
1
Icecast clients disconnect at exactly 10 minutes
I am running icecast2.4.4 on a Debian VM with a python script as the source on macOS on the same computer. I am using a tunneling service (ngrok) to expose my localhost and listen to the stream anywhere. I've tried other tunnels like localtunnel, but still get disconnected at 10 minutes exactly. When listening to my own stream on the tunnel, the client (Chrome, Firefox, mpv) gets
2008 Jul 20
4
how does request.host get set?
how does request.host get set? Is there a way to manually set the value in request.host? I have several application servers running rails, each has its own internal address in the request.host, so when calling redirect_to or url_for function, it uses the internal address which is not accessible to the user. what I want is to set request.host to return mysite.com, no matter which application
2009 Jun 17
2
Using a cgi perl program?
I have a cgi/perl program that I want to use on the same server as my RoR app and I keep getting: The page you were looking for doesn''t exist. You may have mistyped the address or the page may have moved. I load the program to the cgi-bin directory in its own folder /cgi-bin/ fump/ In the /public folder of my app I have the following .htaccess file: # General Apache options
2016 Apr 12
2
mount bind problem
On 04/12/2016 05:37 AM, Sylvain CANOINE wrote: > > > ----- Mail original ----- >> De: "????" <tadao at creative-japan.org> ?: "centos" >> <centos at centos.org> Envoy?: Mardi 12 Avril 2016 08:17:13 Objet: >> [CentOS] mount bind problem > >> I have set on fstab /home with 'mount bind' but it seems like bind >> is not
2017 Nov 13
2
Strrange behavior of VirtualHosts in Apache (CentOS6)
Hello, there is a short explanation about virtual hosts in Apache ... https://wiki.centos.org/TipsAndTricks/ApacheVhostDefault the `hostname` gives a different donmain name than what should be hosted ... e.g. `hostname` is host.example.org and the domain to be hosted is example.com, so I did this: <VirtualHost 1.2.3.4:80> ServerName host.example.org DocumentRoot /var/www/default
2016 Apr 12
3
mount bind problem
On CentOS release 6.7, there's file system problem. Aftert reboot /home is set under /home (/home/home) like followings. # ls -l /home total 48 -rw------- 1 root root 7168 Nov 15 19:10 aquota.group -rw------- 1 root root 7168 Jan 25 11:09 aquota.user drwxr-x--- 2 root root 4096 Jan 18 21:55 backups drwxr-xr-x 4 root root 4096 Jan 1 11:59 home drwxr-xr-x 8 root root 4096 Apr 5
2006 Feb 20
2
DNS Setting
Hello People, In my DNS setting I added A record of www for our company website. It works, when you go to http://www.mycompany.com; it resolves and it shows the website content. But in addition, I want also some kind of redirection or mapping (i don't know what you called that) that when people go to http://mycompany.com (without www), it should forward also to the www server. How to do
2016 Jul 27
2
Proxy
Hi all, I want to do a proxy to icecast (:8000) with nginx (:80). Its working for me, stream is running on port 80, but on the first loading is "pending" For a long time before its starts play. Who using the "proxy_pass" on nginx and can help? Thnx. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2009 Jul 23
2
apache redirect rule
Hello guys, sorry for this OT, but It seems that I am a very stupid :(. I want to achieve one simple think in apache 2.2. If users will type extensions.polarion.com I want to redirect him to extensions.polarion.com/polarion/extensions However there are following rules that apply 1) extensions.polarion.com is an virtual host alias to community.polarion.com . There is a definition inside virtual
2010 Jan 21
4
Redirect www to non-www
How to redirect www to non-www? e.g redirect www.example.com to example.com Thanks Johnny -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to
2006 Jul 10
4
Test Mongrel 0.3.13.4 Please
Hey Folks, There''s a nasty little bug in 0.3.13.3 when running in development mode which could cause all sorts of problems. Please grab the pre-release of 0.3.13.4 and tell me if it works for you: gem install mongrel --source=http://mongrel.rubyforge.org/releases/ Thanks! -- Zed A. Shaw http://www.zedshaw.com/ http://mongrel.rubyforge.org/ http://www.railsmachine.com/ -- Need
2007 Oct 16
1
redirects with mongrel (dropping the www. from a url)
Hi All, I have a rails app running on an apache virtual host with mongrel that i want to set up a redirect from www.someapp.com to someapp.com (dropping the www.) I have tried doing this in apache using a rewrite rule (below) which worked before when the app was written in php. Redirect http://www.soccertackle.com/ http://soccertackle.com RewriteEngine on RewriteCond %{HTTP_HOST}
2007 Nov 14
2
Exception Notification plugin options hash handling????? backwards merge?
Today I worked on adding email exception notification to some ancillary background processes for a Rails app. Since I was already using Jamis'' exception notification plugin to notify me of errors in controllers for the web app, I figured that the path of least resistance was to try to figure out how to hook it into the daemon code. At first it looked easy. I just needed to
2005 Dec 30
6
Unable to get the domain in my routes.rb to map custom route tables per domain
I have tried all night trying to find a way to get the host name which is currently being used within my routes.rb file to do some case/when switching for specific domains such as this cgi = ActionController::CgiRequest.new(CGI.new) case cgi.domain(1) when /www/ map.connect '''', :controller => ''public'', :action => ''index'' when
2009 Jun 22
1
Action caching with multiple domains
I have recently setup some action caching in my Rails app and everything seems to be working fine. I am using file store pointing at /tmp/cache. The problem I am running into is that separate cache directories are being created for different domain names that point at the same server. For example mysite.com and www.mysite.com will have different cache directories. It seems like it should be easy
2010 Jan 09
5
Redirect 301 and cache
I want my rails app to redirect from no-WWW to WWW domain (for example if I enter example.com/test to redirect to www.example.com/test). I put the following code in the application controller and worked fine: before_filter :check_uri def check_uri if !/^www/.match(request.host) redirect_to request.protocol + "www." + request.host_with_port + request.request_uri, :status => 301
2007 Sep 25
16
putting away HashWithIndifferentAccess
Hey, campineros. And many good handshakes to zimbatm for getting some patches applied. So, yeah, I''d really like to get rid of any serious dependancies with this 1.6 release. Anything that''s not in stdlib has to go. Of course, camping-omnibus will still assume the whole ActiveRecord, Markaby, Mongrel setup that''s in the history books. Metaid can be removed and
2007 Aug 24
3
"Site down for maintenance" - How is this accomplished?
Hello everyone, Although we use CentOS primarily on our servers, this query is actually more of a general networking question than something specific to CentOS. In the next week or so, we shall be migrating our in-house servers to a data center. While we're doing that, we'd like to show a "Site down for maintenance" message while the servers that hosts our websites (we have