Ubuntu Servers :: NameVirtualHost 80 Has No Virtual Hosts Apache2 Hosting Multiple Sites Without DNS?

May 10, 2010

I have some problem in apache2 configuration. I have two websites on same IP on LAN.i.e.


What should I check in a few blogs I checked they said to mention in [URL]...But in this case what should I put I have two different websites or what other thing I have missed? I do not have access to DNS so that on LAN I can point site1.abc.com and abc.com to same IP which to me seems could resolve the issue.

View 6 Replies


Ubuntu Servers :: Apache2: SNI & Virtual Hosts - Multiple Virtual Hosts With Ssl And Only 1 Ip Address

Jan 17, 2011


What I want: multiple virtual hosts with ssl and only 1 ip address: In my example: server =


View 9 Replies View Related

Server :: Separate SSL Sites For Multiple IP / Name Based Virtual Hosts?

Feb 15, 2011

I have set up a SSL site for my default Apache server. But I want to set up multiple SSL sites for multiple IP based as well as Name based Virtual hosts. Is there a way where in I can include definitions for SSL certificates and keys within the Virtual Host directive in the httpd.conf, so that I can specify separate key and cert file for every Virtual Host.

View 11 Replies View Related

Ubuntu Servers :: Hosting Multiple Websites With Apache2

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

Ubuntu Servers :: Apache2 Virtual Hosts Foreign Characters?

Apr 23, 2010

when I'm trying to add a virtual host with a foreign character in the domain name. The foreign character is .

I've read earlier threads where it was said I should puny code it, which then translates to xn--nda

I then created a virtual host, as shown (replaced the real domain with exampl�:

<VirtualHost *:80>
ServerAdmin me@exampl�.com
ServerName exampl�.com


However, apache2 doesn't recognize this when I try to enter the domain, it just shows my 000default.

View 2 Replies View Related

Ubuntu Servers :: Multiple Virtual Hosts, Http And Https?

Sep 15, 2010

What is the best way to go about setting up multiple virtual hosts on the same box, one using http and one using https/ssl? I'd like to serve them from the same ip address if possible; I know it's possible in apache 1.3.

View 2 Replies View Related

Debian :: Apache2 Start Error Starting Web Server: Apache2[Wed Dec 09 15:36:40 2009] [warn] NameVirtualHost?

Dec 9, 2009

I am getting this error

Starting web server: apache2[Wed Dec 09 15:36:40 2009] [warn] NameVirtualHost XX.XX.XX.XXX:80 has no VirtualHosts(99)Cannot assign requested address: make_sock: could not bind to address
no listening sockets available, shutting down Unable to open logs failed!

also what is

View 1 Replies View Related

Networking :: Ubuntu 9.10 Apache2 Multiple SSL Sites?

Jan 10, 2010

With hardy, I was able to have multiple SSL sites on the one machine. But I can't seem to get it to work for ubuntu 9.10, I've read that you need to put each SSL site on a different IP. But I was able to do it with hardy without different IP's.

View 4 Replies View Related

Ubuntu :: Multiple SSL Certificates In The Default-ssl File In /etc/apache2/sites-available/ Folder?

Aug 16, 2011

How can I allow multiple SSL certificates in the default-ssl file in /etc/apache2/sites-available/ folder? I tried

NameVirtualHost *:443
<VirtualHost *:443>
but I get the error


View 2 Replies View Related

Ubuntu Servers :: Apache2 Sites-enabled Not Enabling?

Apr 14, 2010

So I am trying to add some sites to my server, right now I have an active site at www2.site.tld. As a test, I copied [URL]to [URL], and changed only the line

ServerName www2.site.tld


ServerName what.site.tld

as well as renaming the lines for the log files appropriately then

# a2ensite what.site.tld
# /etc/init.d/apache2 restart

which by everything I have read should result in what.site.tld being identical to www.site.tld. Instead, it flat-out does not resolve. Apache does create some blank log files in /var/www/

View 1 Replies View Related

Ubuntu Servers :: Separate The 2 Hosts And Access 2 Different Internal Test Sites?

Oct 7, 2010

I installed Apache2 and I added a second virtual host, now can i separate the 2 hosts and let them access 2 different internal test sites? For Example lets say"

User1 uses one IP
User2 uses second IP

How can I separate it in Apache2 and in the /var/www ?

View 4 Replies View Related

Ubuntu Servers :: Apache Virtual Hosting On HTTPS?

Apr 11, 2011

I am trying to get name based virtual hosts all running on HTTPS (port 443) so I can run multiple sites on the one IP.

The DocumentRoot needs to be different for each host.


However, I am unable to find where to actually enable these hosts in the configs. The apache website says to put it in httpd.conf however that file is empty on my machine.

The existing default virtual hosts are in "/etc/apache2/sites-available/default" and "default-ssl"

The main config file is /etc/apache2/apache2.conf

I am running version 2.2.16 of apache

I need to use the same .htpasswd file for all the sites.

I have configured CNAMES on my domain for all of these hosts.

View 4 Replies View Related

Fedora Servers :: Implement Virtual Hosting In Vsftpd?

Jun 2, 2010

I am running vsftpd-2.2.2-3 on my Fedora 12 box. This box has multiple IPs. What I am looking for is make vsftpd listen on those multiple IPs and when a user FTPs to a certain IP, they get landed to the home directory that has been configured for the IP.

This feature is there in Proftpd and is called virtual hosting. I tried to find for Vsftpd such feature, but couldn't find out exactly how to implement in it. how to implement virtual hosting in Vsftpd?

View 1 Replies View Related

Ubuntu Servers :: Virtual Hosting - Name The Index.htlm File Of 2nd Domain?

Apr 13, 2011

Ubuntu 1010 server 64bitlighttpdFor the 1st domain,say domain1

I name the index file as:


View 4 Replies View Related

Ubuntu Servers :: Virtual Hosts Don't Work With Any Web?

Jan 21, 2010

I don't know if I'm posting in the right box - I'm new to both Ubuntu and this forum so please bear with me. Thing is, I spent almost 2 days trying to find a web server that meets my likes. I tried like almost every well known web server, be it Apache, Lighttpd, Nginx, and Cherokee, one by one. For each I was successfully in getting PHP up and running, but was never able to configure the virtual hosts.

I'm 99.99% sure that I - for multiple times - followed correctly the online how-to's. Especially Cherokee, I did exactly the screencast (which is just 2 steps, as Cherokee has a GUI for virtual server setups). Strange enough, with each web server the virtual hosts thing never worked for me. I always received "Server not found" error. I tried with Firefox and Google Chrome. Currently I'm on an Ubuntu 9.10 (32bit) box - I reinstalled this one over the 64bit, to vain.

Don't know if it's a problem with my DNS, but I have another machine running Windows 7 with the same DHCP settings (means same DNS and IP range). Virtual hosts work fine there on an XAMPP installation.

View 9 Replies View Related

Ubuntu Servers :: Apache Virtual Hosts Behind NAT?

Aug 18, 2010

I'm wondering if this is even possible before I start the learning curve with Ubuntu and apache virtual hosts.

I have a static external IP address that resolves to the various domain names I will be using. I have a web server inside my network with a private IP address and any http request to the firewall is forwarded to the webserver on the appropriate port. This setup works well when using the same web page/configuration for all of the domains.

Will it be possible to use named virtual hosts in this configuration, or will the NAT'ing interfere?

View 9 Replies View Related

Ubuntu Servers :: Cannot Access Other Virtual Hosts

May 19, 2011

I have been searching and reconfiguring for 6 days now and have lost several clumps of hair.. PROBLEM: I want 2+ virtual hosts on my ubuntu server (1 ip) BUT - Only the first "alphabetically" listed sites-enabled shows.



View 6 Replies View Related

Server :: Stop IP Based Hosting In Virtual Hosting?

Aug 18, 2011

I have designed name based virtual hosting in apache. as of now,I am able to access website using IP also. which is I am looking to block, only can access by the name

View 7 Replies View Related

Fedora Servers :: Add Virtual Hosts To Xampp?

Aug 16, 2011

I'm new to fedora and linux. I'm trying to add virtual hosts to my xampp server in /etc/hosts I added :

Code: localhost.localdomain testsite
and in /opt/lampp/etc/extra/httpd-vhosts.conf added this:
<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /opt/lampp/htdocs/testsite


View 9 Replies View Related

Ubuntu Servers :: SSL Only On Apache2 Virtual Host?

Apr 16, 2010

I currently have a virtual host setup to accept SSL connections as follows:

<VirtualHost *:443>
DocumentRoot "/var/www"
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem


How would I change it so that it can only be accessed via HTTPS ??

View 4 Replies View Related

Ubuntu Servers :: Apache 2.2 Users And Groups In Virtual Hosts?

Mar 3, 2011

I have Apache up and running and have a few virtual sites enabled. All these sites belong to the same user and group and the directory root for each site is in /home/{same-user}/www/{site-name}/htdocs/

I use Samba to connect from Windows to these directories and by default, files and directories are saved as the {same-user} and {same-group}. My question is, would it cause a problem if I changed the user and group in the virtual server directives in /etc/apache2/sites-available/site.conf files, giving apache permission to write to these files and directories. In the past I have changed the user and group to www-data (the default) but this seems inefficient an cumbersome compared to what I intend to do.

I use the server mostly for development, although at times I have a small site or two available to the public. Before I do this I want to be sure I'm not leaving a gaping security hole by changing these things. If this is all wrong, what is the standard way of running virtual hosts from apache and what is the standard document root for virtual sites?

View 4 Replies View Related

Ubuntu Servers :: Bind9 For DNS Installed - Virtual Hosts Configurable

Jun 11, 2011

I have installed bind9 for DNS. I have also installed Apache2, PHP5, MySQL, and correctly configured these together. When I view domain1.co.uk it currently works fine as required. I would like to change it to:
* /var/www/domain1.co.uk/prod/ - becomes the root dir of domain1.co.uk
* /var/www/domain2.co.uk/prod/ - becomes the root dir of domain2.co.uk

Nevertheless, I have created a the following files; these are copies of the "default" file and correctly amended. the required destination directories are in place!
* /etc/apache2/sites-available/domain1.co.uk
* /etc/apache2/sites-available/domain2.co.uk

I then executed:
sudo ln -s domain1.co.uk ../sites-enabled/domain1.co.uk
sudo ln -s domain2.co.uk ../sites-enabled/domain2.co.uk

It is important to understand domain1.co.uk and domain2.co.uk represent 2 Existing domain names I own, and both point to my server.
domain1.co.uk currently works in /var/www
Why I would like multiple domain names on the server.

View 1 Replies View Related

Ubuntu Servers :: Multiple Apache Sites With Dyndns

Jul 5, 2010

how is it possible to serve multiple sites hosted in my computer with apache through dyndns.I am using ubuntu 10.04 and i had setup a dyndns domain as of mydomain.homelinux.org/ medic. Now when i go to mydomain. homelinux.org outside of my lan i see the default site of apache.

View 3 Replies View Related

Ubuntu Servers :: Getting VHosts To Work With Multiple Sites

Jul 13, 2010

What I want to do now is make nicmatthew.co.cc point to /var/www/nicmatthew/html and make rielworld.co.cc point to /var/www/jimriel/html. I have created the apache vHosts nicmatthew.co.cc and rielworld.co.cc containing this:

ServerName nicmatthew.co.cc
ServerAlias nicmatthew.co.cc
ServerAdmin nmatthew@nicmatthew.co.cc


So now I would like to know how to make rielworld.co.cc and nicmatthew.co.cc point to the correct places. Do I somehow set up nameservers? Do I make an A record?

View 1 Replies View Related

Ubuntu Servers :: Can Host Multiple Sites On The Same Server?

Aug 15, 2010

Recently I've been earning money doing web development, php, html/css, MySQL and so on. What I have encountered a lot are clients that need a complete solution. They need their site built, but they also need a hosting solution. I've sent more than just a few clients off to GoDaddy, and quite frankly, I'd like to cash in on some of that.

It would do wonders for my business if I could offer them a hosting solution with full support on top of building their site. My problem is I have no idea how to do this. So I'd like to know how I can host multiple sites on the same server. Does anyone know of a nice guide I can follow to set this up? It's really important that I can add sites fairly easily over the internet. Since I will be away at school, I won't have direct access to the server

View 4 Replies View Related

Ubuntu Servers :: Error - Thomas@tdtconsulting:/etc/apache2/sites-available$ Sudo A2ensite Tdtconsulting

Oct 12, 2010

I am having problems accessing my website. I have port forwarding enabled on my router and below are the errors I am getting plus my firewall setup.

thomas@tdtconsulting:/etc/apache2/sites-available$ sudo a2ensite tdtconsulting
[sudo] password for thomas:
Enabling site tdtconsulting.
Run '/etc/init.d/apache2 reload' to activate new configuration!
thomas@tdtconsulting:/etc/apache2/sites-available$ sudo /etc/init.d/apache2 reload
* Reloading web server config apache2 [Tue Oct 12 18:21:04 2010] [warn] NameVirtualHost has no VirtualHosts


View 9 Replies View Related

Ubuntu Servers :: Can't Access Virtual Host (apache2)?

Jan 24, 2011

I've just installed LAMP. http://localhost/ page works fine. I need to create some virtual hosts. Localhost page is situated in /var/www/. It's normal for me, and I wanted to created virtualhost (in /var/www/vhost1) But it doesn't open in browser. Where is my mistake?

NameVirtualHost *:80
Listen 80
<IfModule mod_ssl.c>
# If you add NameVirtualHost *:443 here, you will also have to change
# the VirtualHost statement in /etc/apache2/sites-available/default-ssl


View 7 Replies View Related

Ubuntu Servers :: How To Make Virtual Host Using Apache2

May 5, 2011

I want make several virtual Host using apache2. Each virtual host will have virtual domains in localhost with different root.

View 4 Replies View Related

Ubuntu Servers :: Unable To Configure Virtual Hosts File Properly

Jun 28, 2011

I'm having problems configuring my virtual hosts file properly The site [URL]... opens on http and https The site works
I am trying to redirect all traffic from [URL].... to [URL].... while maintaining access to [URL]....


View 2 Replies View Related

Ubuntu Servers :: Apache2 Virtual Host Appears To Redirect Url ?

Jun 4, 2010

My goal is a testing server with an apache virtual host for each site that I'm working on, with fairly painless setup for each new job.For example, I want http://site-a.mydomain to server this document root /home/client-a/site-a/public_html (or something to that effect)Ideally, DNS will use a wildcard to point http://anything-i-type.mydomain to the testing server, and apache will have a dynamic virtual host definition that will do a little magic so that I won't have to mess with DNS records or add a new virtual host each time I add a new site for a client. I'll worry about that when I get there, just put that out there in case anyone has any tips! for now I just have one little problem that's hurting my mood-

It looks like I've got my DNS server working just fine, so yay there- BUT my first attempt at adding a virtual host isn't working quite how I expected- meaning that site-a.mydomain now serves up the correct document root, but when you put http://site-a.mydomain into the browser's address bar, the address bar is then updated to - bogus!! I must be missing an option like "FunnyBusiness Off" -

root@ubuntuvm:/etc/apache2/sites-available# vim client-a.mydomain
<VirtualHost *:80>
UseCanonicalName Off
ServerName site-a.mydomain
DocumentRoot /home/client-a/site-a/public_html

View 2 Replies View Related

Copyrights 2005-15 www.BigResource.com, All rights reserved