Ubuntu Servers :: Adding Multiple Websites To Vhost?
Jul 15, 2010
I'm setting up a server on Ubuntu 10.04 for development. It all seems to work nicely, I just have one thing that's bugging me. I have a project in /var/www/portfolio, which is as you may guess my portfolio. Instead of the link http://localhost/portfolio I'd like to use http://portfolio.nl. So I set up a file 'portfolio.nl' under sites-available and a symlink on sites-enabled containing this: To get this to work on my local machine I set up this in /etc/hosts:
[Code]...
View 2 Replies
ADVERTISEMENT
Sep 24, 2010
I have two sites (actually more) configured in apache2. All sites have their own vhost file, which I enable or disable with a2enmod or a2dismod.
This works fine.
I have configured some SSL sites inside the vhost files, where I have created two different certificates. One for each site.
BUT, if I enable example2.com, it will always load the certificate from webmail.example1.com when i go to the ssl site webmail.example2.com, nomather what (because it comes first in the alphabet maybe) ?.
If I then uncomment the SSL site for example1.com if will work fine with webmail.example2.com, but of course then the site for webmail.example1.com is not working since it is uncommented.
So for some reason, it "falls back" to this site webmail.example1.com everytime, which I have absolutely no idea why it does this. All the other vhost running on port 80 configurations, works fine, but just not the SSL (port 443 ones).
Example1.com:
Code:
<VirtualHost *:80>
DocumentRoot /home/example1com/wwwroot/
ServerName www.example1.com:80
ServerAlias example1.com:80
[Code].....
View 2 Replies
View Related
Jul 21, 2010
I read that since httpd 2.2.12 (I run 2.2.15), it is now possible to run multiple SSL certs on multiple vhosts on one ip. I didn't find a procedure to do it. Do you know how to?
View 1 Replies
View Related
Dec 15, 2010
I am trying add three namebased virtual hosts in local apache2 webserver OS ubuntu 10.10. The three sites are :www.site1.eka,www.site2.eka,www.site2.eka
The first I created a file is virtual.conf in conf.d directory its content is :
# we're running multiple virtual hosts.
# NameVirtualHost *:80
Next I created following files in sites-available directory. [URL] is as follows:
#site1.eka (/etc/apache2/sites-available/www.site1.eka)
<VirtualHost *:80>
ServerAdmin webmaster@site1.eka
ServerName www.site1.eka
ServerAlias site1.eka .....
When I visit the [URL] in browser it says server not found.
View 3 Replies
View Related
May 8, 2009
I would like to know if I need multiple IPs' to setup two SSL urls on the same Apache server? Two ssl certificates, one IP - is it possible?
View 4 Replies
View Related
Jun 1, 2010
I have this intra net server project going on and now I moved to 10.04 however there are still some things that I would like to see clarification and instructions on. I am interested to set up multiple parallel websites for my apache server, however I am not sure how to do this exactly. Now I have solid address rivera.wippies.net and port 80 redirecting to my server. What I would like to get done is that I get multiple independent of each other websites for my server I was thinking of making websites like this
/var/www/site1 (which would be as rivera.wippies.net)
/var/www/site2 (which would be as rivera.wippies.net/othersite)
/var/www/site3 (which would be rivera.wippies.net/secondothersite)
etc, so that I have multiple "individual" websties for my server. Requirements would be that each of these websites could have SSL encryption as needed available too, since some of the website could have confidential information.
View 9 Replies
View Related
Aug 25, 2010
I currently am running 10.04.1 and have successfully setup my home web server to run a single website. My current settings are:
-I have registered the domain name annarrankings.com through godaddy
-A record is - host = @ and points to = 71.114.220.3
-CName is - host = www and points to = @
-on my server I have the site running in /var/www
I've done some research and found that to run multiple websites I need to setup VirtualHost.
-So I created a folder /var/www/annarrankings.com and moved my site to that folder
-Edited Apache2.conf to add the following line
-I then went to /etc/apache2/sites-enabled and copied the default file to a new file called annarrankings.com. Here's the annarrankings.com file after I edited it
-I then created a link in /etc/apache2/sites-enabled to the annarrankings.com file in /etc/apache2/sites-available
-Next I editied /etc/hosts
-When i went to enable the site using a2ensite annarrankings.com I got the following
I figured this was ok since I had already created a symbolic link earlier (a result of trying to following multiple tutorials and ..... videos at once) so I reloaded apache2. I created an index.html file in /var/www/ just for testing purposes and when I load www.annarrankings.com I get the file located in /var/www/ instead of the website located in /var/www/annarrankings.com Do I need to change my A record or CName in godaddy or did I just do this completely wrong?
View 8 Replies
View Related
Mar 18, 2011
I would like to set up apache so that:
[code]....
Is it possible with only 1 IP or do i need 2 IPs? I have tried several configurations, but they always seem to lead to a dead end with either the IP-site or the domain-sites not working. There has to be a right way to do this.
View 3 Replies
View Related
Jul 9, 2011
Do you have any idea on how to achieve my goal? Here is the scenario. As a requirement on our development process for every ticket we have we need to create a branch(svn) so that we can develop without disturbing other developer. Now for every checkout I made I need to create a vhost so that I can develop first in my local before deploying to the branch.The site I'm working on is based in Drupal. The files I checked out is just the all folder of Drupal. The core files are already in my local. So the script would grab the core files and copy the all folder in my checkout branch then put them in the vhost.So basically I need a script that will do these automatically for me:1. Setup a vhost Ex: My branch name is 1205googleplusone. Inside that branch has two folders, all and default. What I need only is the DocumentRoot should only point to all folder.2. Update the /etc/hosts Ex: The URL should be 1205googleplusone.domain.com. 3. Create a new database for the new site The script should create a new database and update the configuration.php
View 6 Replies
View Related
Apr 8, 2011
I run ubuntu 10.10 with apache2 and have 2 virtual hosts set up
here is an example of one of the virtual hosts
<VirtualHost *:80>
ServerName blah.endofinternet.org
ServerAlias blah.endofinternet.org
ServerAdmin davidboychuck@gmail.com
DocumentRoot /var/www/blah
[Code]....
Everything was working perfectly until i changed the internal ip of my router from 192.168.1 to 192.168.192 and now virtual hosting no longer works. As far as I can tell everything is setup correctly. I made no changes to the configuration files. Vhosts just literally stopped working. I've tried clearing dns cache not sure what to do at this point. I have tried to a2dissite and then a2ensite and reload the configurations but it literally just seems like apache is not looking for the vhosts in /etc/apache2/sites-enabled even though my apache2.conf still includes them
#Include the virtual host configurations:
Include sites-enabled/
From the apache error log:
[Sun Apr 03 16:41:50 2011] [error] [client 66.249.72.208] script '/var/www/index.php' not found or unable to stat
[Code].....
It looks like it's just not trying to use the vhost document root because when i go to blah.endofinternet.org it just takes me to the default site.
View 2 Replies
View Related
Aug 1, 2011
I currently have a single mysql instance for a couple of websites. Both websites require that the user provide a username.
The thing I just noticed is that two people might choose the same username for both applications. Both of them would have grants to each others' tables, although neither would ever be able to access them, since they can only access through php scripts.
But, I'm now guessing this is not best practice. What does one do? Run multiple instances of mysql for several websites?
View 4 Replies
View Related
Apr 1, 2010
I have managed to configure AWstats to work from one server to access the log files for multiple websites on multiple servers and even managed to write a little front end php site to access all the different conf files. I want to know if there is a way of combing two conf files for the same site but are on two different servers in a loadbalanced situation. so my conf files look something like: [URL].. I have to monitor bandwidth for our websites and its gets tedious switching between the various conf files for the same site and totaling it up so I was hoping I could combine the output of both conf files on screen using some funky command in the awstats.pl script
View 1 Replies
View Related
Sep 25, 2010
I've currently got a centos server setup in my home. It has 1 website running on it and I am using DynDNS.com's service to access the server. DynDNS works by redirecting a free url to the IP address of your server. I would like to add a second website under a different url. However, I'm not sure how to add a second IP address (which I would then use with DynDNS to create a new url).
View 3 Replies
View Related
Jan 12, 2010
I need to find a solution where I can monitor multiple sites at once and know when they go down. There are fraudulent sites (not mine I am in the infosec industry)
I have been playing with Nagios and Zabbix all day with not much luck. I have managed to get both installed and running and researched for hours. I just need to figure out how to add domain names to be monitored and I am stuck. I know you have to do it in the conf files but I cannot get a domain to show up?
View 3 Replies
View Related
May 30, 2011
I am trying to create multiple FTP sites on one Linux server (using multiple vsftpd-sitename.conf files) with default port '21'.
Below is the sample vsftpd site configuration,
# cat vsftpd-site1.conf
listen=YES
write_enable=YES
[code]....
I am unable to create above vsftpd site with port '21'. Below is the problem,
# vsftpd vsftpd-site1.conf &
[1] 14448
500 OOPS: could not bind listening IPv4 socket
I wonder, i can able to create above FTP site with another port (example, listen_port=60001 ). In Linux(vsftpd), can i use default ftp port '21' for multiple FTP sites?
View 2 Replies
View Related
Jan 30, 2011
Is it possible to run two servers through one ip address? And I don't mean through apache to run virtual servers. Right now my set up is: Cable modem>router>server.
View 9 Replies
View Related
Jun 12, 2011
So here is my problem. I have websiteA.com and websiteB.com. I only have one public IP address. And websiteB needs to be constantly restarted, so both need to be on separate apache servers or instances.Virtual directories wont work cause I can only point websiteA to a directory /var/www/websiteA.Reverse proxy wont work cause I can only catch a sub directory.Proxy /websiteA/ URL...Does anyone know how I could get this to work in anyway.
View 4 Replies
View Related
Jun 1, 2010
I want to add users from the command line, I know I can use the adduser for individual users, but if you have 50 or more there must be another way. I'd rather not use the GUI.
View 2 Replies
View Related
Apr 12, 2011
I know Ubuntu can do amazing things, but I was wondering if it can use different Internet connections for different websites.
The Setup: We have 1x unshaped ADSL connection at 4MBPS (fastest available) that's used for office related things, Skype, General browsing etc. We have another ADSL connection, this time shaped and running at 4MBPS, I want to send all requests to facebook, twitter and downloading sites like fileserve, filesonic, hotfile etc. to the shaped connection. Can iptables be used to do this? The unshaped ADSL router is connected to eth0 and has an IP of 192.168.0.1 the shaped ADSL router is connected to eth2 and has an IP of 10.0.2.1 Local lan is connected to eth1 and has a range of 192.168.1.0/24 Can iptables send a certain webpage (*.facebook.*) to eth2 and other pages (*.google.*) to eth0 ?
View 3 Replies
View Related
Apr 12, 2010
I want to block all websites except desired websites.
View 3 Replies
View Related
Nov 12, 2010
I am moving some websites from a shared host to a newly configured Xen based VPS with Ubuntu 10.04. A steep learning curve but I am getting there! I have a couple of sites installed on the new server and want to test them out, from what I understand I should be able to edit /etc/hosts on my desktop computer (running Ubuntu 10.04) which should automatically redirect my browser to the new server. But it doesn't seem to work.
This is what I appended to the /etc/hosts file:
12.34.56.78 www.xxxx.com
I thought that this should send any requests for www.xxxx.com to 12.34.56.78? Some googling indicated that the browsers I am using may be using DNS caching, ignoring the hosts file. I've tried clearing the cache with Chromium 7.0.517.44 (64615) and Firefox 3.6.12, and even installed a plugin in Firefox to block DNS caching.
View 9 Replies
View Related
Jun 6, 2011
I have an issue viewing my hosted webpages via wired connection on the same network as the server. I can view them via wireless without a problem but wired times out.
View 8 Replies
View Related
Feb 7, 2011
so I am trying to make a launcher under application/Games menu for OpenBVE. In this launcher I need it to run 2 commands in the terminal:
Code:
cd /home/username/OpenBVE
and
Code:
mono OpenBve.exe
[Code]....
View 4 Replies
View Related
Apr 23, 2011
One of the things I wanna do is create a partition which spans across multiple HDD's. is this possible? would I need to cluster the HDD's first then add the cluster to the partition?
View 3 Replies
View Related
Jul 28, 2011
I have a desktop which has both windows and ubuntu. I want to add some users in ubuntu, say Me (first user),B and C. i) Certain folders should remain inaccessible from windows partition.ii)Me should be able access both B and C home folder, but not otherwise.iii) user B can access user C, but user C cannot access user B.
View 5 Replies
View Related
Oct 26, 2010
Idealy I want to create a batch file which would read the list and create a user and a password.
I know i need to create the file using the vi command and using the useradd facility to add the users however where i go from there i am lost.
View 5 Replies
View Related
Dec 7, 2009
HTTP - Can't see website(s) externally
View 4 Replies
View Related
Apr 8, 2010
I have got a small queston: I have got several websites and some time ago I decided to delete some of them. As a result there is no virtual hosts on my web server, but if I will go to my_old_website dot ru I will be redirected to one of my current web sites (or if I will paste an ip address in browser), I want to know, how to block this?My virtual host's looks like this now:
Code:
<VirtualHost *:80>
ServerAdmin my_mail
[code]...
View 4 Replies
View Related
Sep 14, 2010
I develop many websites at the time in php, so I created virtual hosts in apache. In order for them to work properly I edited /etc/hosts like thisQuote:
10.50.2.105hal.mundohal# Added by NetworkManager
127.0.0.1localhost.localdomainlocalhost
::1hal.mundohallocalhost6.localdomain6localhost6
[code]....
View 1 Replies
View Related
Oct 23, 2009
hHow would I add my SSH server to run levels 3,4,5? I have been trying to search google for this answer to my problem for hours and cannot have any luck.
View 2 Replies
View Related