Remove Bitnami Jenkins Access page - jenkins

I have bitnami jenkins installed.
I have no problem with the url http://yourhost/jenkins but i need to delete the Bitnami Welcome page. is any idea?

The documentation (https://wiki.bitnami.com/Components/Bitnami_info_page) says that the bnconfig tool should be used. However for me this doesn't work and I changed it manually in the apache configuration files.
To do so, change in file /opt/bitnami/apache2/conf/bitnami/bitnami.conf the lines:
<VirtualHost _default_:80>
DocumentRoot "/opt/bitnami/apache2/htdocs"
and
<VirtualHost _default_:443>
DocumentRoot "/opt/bitnami/apache2/htdocs"
into:
<VirtualHost _default_:80>
DocumentRoot "/opt/bitnami/apps/jenkins/htdocs"
and
<VirtualHost _default_:443>
DocumentRoot "/opt/bitnami/apps/jenkins/htdocs"
Then restart apache:
sudo /opt/bitnami/ctlscript.sh restart apache
This si brutal but it works, and the vhost (http://yourhost/jenkins should also work) :)
Note that the main documentation (https://wiki.bitnami.com/Native_Installers_Quick_Start_Guide) says in part "How to change the default page that appears when accessing the installation?" that changing it manually is the way to go, but suggest to use a modified version of the main page. I guess this is fine if you have several apps installed.

Related

Passenger on Ubuntu still only serving default index.html

Trying to get my server to serve my rails apps.
I have a test app installed, apache2 and passenger have been installed have I have added the following to the apache2.conf
# Include the virtual host configurations:
Include sites-enabled/
NameVirtualHost localhost:80
<VirtualHost localhost:80>
ServerName 192.168.1.67
DocumentRoot /home/john/Public/test-app
</VirtualHost>
Clearly, I am misunstanding something, because I think that should redirect calls to my local IP to my rails app. It is not. It is going to the default apache index.html.
What am I doing wrong?
UPDATED answer:
I think you are missing the "Directory" node. try using this config code:
(assuming your project path is: /home/john/Public/test-app)
<VirtualHost *:80>
DocumentRoot /home/john/Public/test-app/public
RailsEnv development
<Directory /home/john/Public/test-app/public>
AllowOverride all
Options -MultiViews
</Directory>
</VirtualHost>
This is how I usually do it:
<VirtualHost *:80>
ServerName mysubdomain.betamaster.us
DocumentRoot /var/www_home/mysubdomain/
</VirtualHost>
After applying these changes make sure to execute
/etc/init.d/apache2 reload
in order to reload the server configuration.
I had the same symptoms in this question but it was a different problem. My apache install already had a Virtual host enabled, so I had to disable it and enable my own with the commands
sudo a2dissite default
sudo a2ensite myapp
where default was the name of the Virtual Host file included by default in sites-avaliable/ and myapp is the file i added.
Hopefully this helps someone.

Apache and passenger setup virtualhost restart failing

I have installed passenger on my Ubuntu 10.x server and I am running Apache2. I have followed the instruction "I think" pretty well. After setting up my virtual host and trying to restart I am getting a failed to start apache error because Documentroot takes one argument. I have the document root set is the thing so I am wondering if you guys could offer some suggestions as to what I may be doing wrong.
I have all my virtual hosts in separate files by domain name, so the directory structure on the server is something like this
/etc/apache2/sites-available/dev.mydomain.com
/etc/apache2/sites-enabled/dev.mydomain.com
both files have the following in them but restarting apache only fails when I put the vhost info in the enabled file.
<VirtualHost *:80>
ServerName dev.mydomain.com
DocumentRoot /home/myfolder/dev/vb/public # <-- be sure to point to 'public'!
<Directory /home/myfolder/dev/vb/public>
AllowOverride all # <-- relax Apache security settings
Options -MultiViews # <-- MultiViews must be turned off
</Directory>
</VirtualHost>
Thanks for any help you can offer.
Comments in httpd.conf must go on their own line.
have you given before defining VirtualHost
NameVirtualHost *:80
if this given remove those commented line after document root and try

Rails app deployed with Passenger just displays index of app's public directory

I am trying to deploy a Rails application on Ubuntu 9.04 using Passenger.
As far as I can see, I have everything configured correctly; however when I point my browser at my domain, all I see is the index of the app's public directory.
My hunch is that Passenger is not starting up - at the bottom of just-plain-folks.co.uk there's no reference to Passenger at all. There's nothing interesting in the log files.
This is my config:
/etc/apache2/mods-enabled/passenger.conf
<IfModule passenger_module>
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.9
PassengerRuby /usr/bin/ruby1.8
</IfModule>
/etc/apache2/mods-enabled/passenger.load
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.2.9/ext/apache2/mod_passenger.so
/etc/apache2/sites-enabled/just-plain-folks.co.uk
<VirtualHost *:80>
ServerAdmin admin#just-plain-folks.co.uk
ServerName just-plain-folks.co.uk
ServerAlias www.just-plain-folks.co.uk
DocumentRoot /srv/www/just-plain-folks.co.uk/public_html/
ErrorLog /srv/www/just-plain-folks.co.uk/logs/error.log
CustomLog /srv/www/just-plain-folks.co.uk/logs/access.log combined
</VirtualHost>
/srv/www/just-plain-folks.co.uk/public_html/ is a simlink to the public directory of my application
If there's anything else that might be useful in diagnosing this, let me know. Any help is much appreciated!
Try ditching the symlink and pointing directly as public. I believe passenger is a little magic in this area as to how it detects the rails app.
Even if the symlink source was called public, I suspect it would still be looking for a rails_root in /srv/www/just-plain-folks.co.uk/.
(Updated: I missed the fact that you're trying to serve from the docroot)
Try turning off MultiViews
<VirtualHost *:80>
...
<Directory /srv/www/just-plain-folks.co.uk/public_html>
Allow from all
Options -MultiViews
</Directory>
</VirtualHost>
Well, I had the similar issue with Sinatra, Phusion Passenger and Apache. My public directory was nested somewhere in deep, and the same thing with the views directory.
So, following configurations made my app running.
In apache's conf file, instead of /home/me/projects/fantasy-app/somewhere/nested/public, I just had to use /home/me/projects/fantasy-app/public in the DocumentRoot and <Directory> directives.
In my app.rb which onfig.ru refers to, I had the following:
set :public_folder, 'build/development/public'
set :views, Proc.new { File.join(root, "build/development/views") }

Controller pages inaccessible in new RoR project...why?

I set up a new RoR project on MAC OS Leopard, created a repository, svn added the whole Rails project, committed, checked out at my site, set up a vhost (see below), and I cannot get to a new controller page I created (/mycontroller/index). I CAN get to the "Welcome Aboard" page. I have another Ruby install (Redmine project management software) running with Apache.
I get this:
Not Found
The requested URL /developer was not found on this server.
Apache/2.2.8 (Ubuntu) mod_fastcgi/2.4.6 PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch mod_scgi/1.12 Server at colorubooks.chadjohnson.ath.cx Port 8080
Here is my vhost setting:
<VirtualHost *:80>
ServerName mysite.mydomain.ath.cx
ServerAdmin email#gmail.com
DocumentRoot /srv/www/mysite.mydomain.ath.cx/public
RailsEnv development
<Directory "/srv/www/mysite.mydomain.ath.cx/public">
Options Indexes ExecCGI FollowSymLinks -MultiViews
Order allow,deny
Allow from all
AllowOverride all
</Directory>
</VirtualHost>
First:
In DocumentRoot you missed a /
change:
DocumentRoot /srv/www/mysite.mydomain.ath.cxpublic
to:
DocumentRoot /srv/www/mysite.mydomain.ath.cx/public
then you should be able to see static files in the /public directory (like the welcome aboard page)
Now I have a question for you... I presume that you want to use apache to deploy... Have you already installed and setup passenger (mod_rack) apache module?
Link to easy passenger install guide: http://modrails.com/install.html
enjoy!

Using mod_rails to host multiple apps under SSL, same domain

I'm trying to get multiple rails apps hosted under the same domain, but different directories. My configuration before attempting to host multiple apps (which works great), looks like this:
<VirtualHost *:443>
ServerName secure.mydomain.com
DocumentRoot /root/store/public
</VirtualHost>
I google'd around and found documentation suggesting I use the following configuration:
<VirtualHost *:443>
ServerName secure.mydomain.com
DocumentRoot /root
RailsBaseURI /store/public
RailsBaseURI /store2/public
</VirtualHost>
That configuration, however, only causes my directory structure to be revealed, and no app appears to run. Any advice would be great!
Not sure what you found on the Googles, but you might want to re-read the mod_rails docs on Deploying to sub URIs
I'm guessing you'll need to create some symbolic links (aliases) in your /root directory to the public folder of each application
ln -s /store/public /root/store

Resources