Why my Redmine site is shown without any Virtual Host settinig? - virtualhost

I've installed Redmine 3.2.4.stable.16111 on to my VPS. I haven't written any Virtual Host settings for Redmine. Only added server name "redmine" as CNAME to my DNS records.
Why Redmine works without Virtual Host settings?
I installed Redmine according to Redmine's official Japanese page, so I guess it was installed at /var/lib/redmine/. But under that directory, no "public" folder. So I also wonder why Redmine works fine.
Any help will be appreciated.
Thank you.

Well Redmine is written in Ruby language. A Redmine website can be served by different web servers, such as Apache, Nginx. Web brick is a simple http server written in Ruby language that can be used to quickly get started with Redmine. By default it runs over port 3000. It does not require any virtual hosts.
Redmine can also be run with a combination of web servers. For example Apache web server can work as reverse proxy for the Web brick server.

Related

Redirecting IIS website to Apache website

I have IIS 7.5 and a website which currently running. I also have build a new website on WordPress running on Linux container published by Apache Tomcat.
I need to redirect the old websiteURL which is hosted on the ISS to the new site on WordPress.
Is this possible ? I have tried http redirect, but this only works locally since the new website isn't published to outside.
You are right that Http Redirect should be the solution.
https://www.iis.net/configreference/system.webserver/httpredirect?showTreeNavigation=true
if your Apache website is 'not published', I guess it will not be visible for Internet users including the IIS box. This means there won't be any way of serving your content from the Apache box.
If you are in a setup that the IIS has visibility of the Apache, but general Internet does not, then you might have a solution. This scenario can exist because of certain firewall rules. In this situation, you can set up what is called a 'Reverse Proxy' in IIS.
https://blogs.msdn.microsoft.com/friis/2016/08/25/setup-iis-with-url-rewrite-as-a-reverse-proxy-for-real-world-apps/

How to URL Rewrite on tomcat running behind Apache

I searched google many time, but unable to find a good answer.
I have tomcat running behind Apache linked via mod_jk on my CentOs VPS.
I want to rewrite urls.
I already tried UrlRewriteFilter.
It is working fine in my offline tomcat in Win7 PC
But not working on online VPS.
Is there any way to rewrite urls in tomcat running behind Apache (Mod_JK)
I have some jsp files in my APP and some of them are dynamic.

Setting up tomcat6 using mod_jk for Apache, page not found using https

I have been trying to setup an Apache web server along with a Tomcat6 web server, using SSL/HTTPS. On my Apache web server the SSL is working correctly, and I can access the web pages it serves up using SSL/HTTPS, but I am having a problem accessing the web apps on the Tomcat server using SSL/HTTPS. The new setup is on a Centos 6 machine, and I have a similar setup on a Fedora 13 machine.
I have compared all the files that I can think of between the two machines, but can not get to the web apps using HTTPS. When I try I get a "Not Found" error. I can access the web apps if I use just HTTP.
Can anyone point me to where my problem might be?
Thank you

Installing OTRS on DreamHost

I'm using a Debian VPS on DreamHost and wanted to install a feature-rich customer issue-tracking system (not for software development like Bugzilla). OTRS made my shortlist and I followed the Installation Instructions through the "Web Server Configuration" step (/etc/init.d/apache2 restart), but the restart step reported failure. Nevertheless pgrep apache showed it was running. In fact, it turned out that although www.mysite/otrs/installer.pl was running, my regular website showed a page claiming it had no content (but when I looked in the website's folder, its content was fine, just not being served).
DreamHost Support was very helpful, but explained that they don't use the standard Debian Apache server for hosting websites and instead use their own. Specifically, the Debian server is in /etc/apache2, but the DreamHost server is in /dh/apache2. DreamHost Support determined that the OTRS installation instructions were configuring the usual Debian Apache location which somehow prioritized that server instead of the DreamHost server. They tried moving the otrs.conf file into /dh/apache2, but though the regular website was working again, the OTRS page wasn't.
Has anybody had success installing OTRS on a DreamHost VPS?
I've consulted one of our admins on this, and these are our suggestions:
You will either need to:
Adapt DreamHost's Apache build to incorporate the OTRS modifications
Get Debian Apache up and running
Both options will require an admin user and some knowledge of Linux command line and Apache management tools. You will also need to set your VPS to UNMANAGED, which means that any changes in the DH Web Panel to any of your domains will have no effect whatsoever. Just make sure the DNS records for any domains are pointing to your server. You will also need to be able to manage your own Apache configurations.
NOTE: This will also essentially mean that DreamHost support cannot and will not troubleshoot your domains. Unmanaged means unsupported in any way!
There are a few core differences between DreamHost's apache2 configuration and the default Debian build. The first issue I observe is that DreamHost's configuration does not allow for extra configuration files to be loaded in the manner that the OTRS documentation suggests. This means if choosing option 1, you will need to manually insert the OTRS directives into DreamHost's configuration files, which may prove difficult.
I would recommend moving or otherwise disabling the /dh folder entirely after setting your VPS to unmanaged. This will not allow DH-default Apache to start when the VPS starts. You may also need to remove the DH Apache startup script in /etc/rc3.d/S02httpd2 and the actual script at /etc/init.d/httpd2.
Once you have your own version of Apache running successfully, you might consider copying the VirtualHosts that were previously at /dh/apache2/apache2-ps/etc/httpd.conf into your own domain configuration files in your conf.d directory, or you can shuffle your website files around and configure your Apache to your desire.
Once you've got your own flavor of Apache running, you should be able to implement the OTRS instructions per their wiki. :)

How to configure apache to proxy requests

I want to add a javascript based chat system to my web app. I have read in many places that apache needs to forward(proxy) the requests to the xmpp chat server.
From what I have understood , I either need to add proxying support to apache server
OR use the jabberHTTPbind servelet.
I am trying the first thing. Add proxy support to apache. Now within Eclipse I am using Tomcat 7.0. I think this Tomcat comes with its own web server and is not using Apache. Is that true ?I am using Tomcat from http://tomcat.apache.org/download-70.cgi and added server in Eclipse by providing its extracted path.
I am not able to find any apache related folder structure eg(/etc/apache2/apache2.conf) within my Tomcat extracted directory.Also can't find httpd.conf anywhere .
Should I need to download apache separately and connect my tomcat to it.
I think adding proxy support to apache is required because javascript code won't be able to connect to any URL other than the current domain. so the question again is the same , where are all these apache2.conf and httpd.conf to add mod_proxy. and where can I do the virtual host mapping.
Any help to move ahead with be very much appreciated.
You need to install the Apache HTTPD server and enable reverse proxying. Read the doc on mod_proxy on how to do this. There are tons of resources on Stackoverflow as well; search for Apache reverse Proxy. The conf files you mention are part of the Apache HTTPD install.
javascript code won't be able to connect to any URL other than the current domain
That is generally true unless you enable CORS