Ubuntu Servers :: Apache Multiple SSL VHost On One IP

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


ADVERTISEMENT

Ubuntu Servers :: Apache Vhost With IP And Domainnames?

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

Software :: Apache2 Multiple SSL Vhost In Different Vhost Files, Does Not Work

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

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 View Related

Ubuntu :: Apache And VHost Not Working After Upgrade

Jun 25, 2010

After Ubuntu autoupgraded my Apache, some VHosts are nor working anymore and PHP Code is not oarsed any longer. I think the apache2.conf was overwritten. I do not have a clue how ti fix that, I tried some things but now I am stuck. I have only three hosts: the default, an svn (over port 443) and one called "imcar" which has PHP scripts to be parsed.

So, in my apache2.conf I have this:
Code:
DocumentRoot /var/www
ServerName localhost

The imcar host is set up like this:
Code:
<VirtualHost *:80>
ServerName imcar
ServerAdmin webmaster@imcar
DocumentRoot /var/www/imcar

<Directory /var/www/imcar>
Options FollowSymLinks Indexes
AllowOverride None
Order allow,deny
allow from all
</Directory>

ErrorLog /var/log/apache2/imcar-error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
</VirtualHost>

If I go to imcar in the browser, the default DocumentRoot is shown. If I remove the default DocumentRoot, I get a 404 on imcar.

View 8 Replies View Related

Server :: Add A Second Vhost To Once Working Apache Config

Mar 17, 2011

I am trying to add a second vhost to my once working apache config. Now I have things really bollixed up and cannot access anything. I am getting a error 400. The access log shows this:

192.168.0.2 - - [17/Mar/2011:11:24:41 -0400] "GET /" 400 951
192.168.0.2 - - [17/Mar/2011:11:24:41 -0400] "GET /" 400 951 "-" "-"

I have a default (I think) httpd.conf file and put all my config stuff in files in vhosts.d. I have 3 files there:

[Code]...

View 14 Replies View Related

CentOS 5 Server :: Vhost Under Separate UID With Apache?

Aug 23, 2009

I'v multi v-host . need to make each V-Host work under separate user (not apache user).

There is one module/patch call " mpm-itk " . In Debian/Ubuntu every thing is sweet
just do

apt-get install apache2-mpm-prefork libapache2-mod-php5 or aptitude install apache2-mpm-itk

that is all

But in CentOS 5.3 , there is always some difficult different (Why ? I do not know)

Kindly, Look to this solutions : [URL]

Is there possibility to avoid this complications ?

- I need solution without compiling + patching the apache , Is this possible ?

View 1 Replies View Related

Server :: Apache Vhost With Reverse Proxy And Redirection

Jan 6, 2010

Here my setup of Apache :
I have two virtual hosts on separate IP and on both I am using port :80 one is main website domain.name and another webmail.domain.name. And to get full link path I am using index.html with redirection derectives. My question how I can setup each Vhost to he is own redirection directive to set two full link like:
when type webmail.domainname -----> redirect to webmail.domainname/horde/imp/file.php
and www.domainname ------> redirect to www.domainname/csr/
Right now working only one of this Vhosts, just problem to separate them when I type www.domainname -----> apache redirect to webmail.domainname.

index.html
<html>
<head>
<title>WebSite</title>
<meta http-equiv="REFRESH" content="1;url=http://www.domainname/csr/"></HEAD>
<BODY>REDIRECTION</BODY>
</HTML> .....

View 8 Replies View Related

General :: Redirect Apache (mod_rewrite) From Subdomain To Https Directory (vhost)?

May 1, 2011

On one of my servers (Centos 5.5), I have been hosting articularly complex CRM application for one of my clients. Recently they have asked about configuring SSL connections to the CRM. Problem is, SSL is already configured for their main domain but not the sub-domain where the CRM application is accessed. Rather than purchasing another SSL certificate for their sub-domain (and probably another IP address),ld it be possible to setup a redirection from the subdomain to a sub-directory in the SSL directory using mod_rewrite. I have searched online and through the other posts on LinuxQuestions but nothing I have tried works.For example:[URl]

View 2 Replies View Related

Ubuntu Servers :: Apache Multiple Ports Config?

Mar 28, 2010

I have several sites running on a local server. Currently, they're all running on port 80. I need one particular site (and ONLY that site) to also accept connections on port 81.

If I browse to the server IP x.x.x.x:80 directly, Apache's behaviour of showing the default site should work as usual. But, if I browse to IP x.x.x.x:81, it should show a different site (the one that should be accepting both :80 and :81). This part is very important.

I was hoping something like the following would work, but it didn't Currently x.x.x.x:81 still shows what I've called myport80defaultsite.com below.

Code:
Listen 80
Listen 81
<VirtualHost *:80>
ServerName myport80defaultsite.com

[Code].....

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/127.0.1.1 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 :: Apache Multiple Hosts Defined Only One Page Is Served?

Dec 30, 2010

I have a server that host's several sites, recently I had to create a new server because the old one isn't good enough for me. Ive installed apache2 on the new server and moved all the files from one server to the other. I'm making tests in my local lan so I've edited my computer's hosts file to point to the name of each site to the local ip of the new server:

192.168.1.85 www.mypage.com
192.168.1.85 svn.mypage.com
192.168.1.85 trac.mypage.com

I have all the site definition files in /etc/apache2/sites-available I also have the used a2ensite to enable each page.

Whenever o use my browser to try and access each of the sites I always get the svn.mypage.com page and none of the others.

here is some debug info:

Code:
sudo apache2ctl -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:

[Code]....

View 1 Replies View Related

Ubuntu Servers :: Simple Q Multiple Apache Users And Remote Administration

Feb 7, 2011

how one professionaly would solve the security and administration for the multiple webadmins, but firstly I give some general information.I spent 2 days searching and there are alot of good guides but I dont see my specific questions answered, not so I can understand them atleast.I have Ubuntu 10.10 64bit server edition installed.I am educating myself and am new to linux but use vmware and have installed Gentoo multiple times and a copy of Ubuntu server. This server is going to be setup on the 64-bit 10.10 Ubuntu virtual machine.

View 3 Replies View Related

Ubuntu Servers :: Script To Automatically Create Vhost And Update /etc/hosts?

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

Ubuntu Servers :: Apache2 Vhost Stopped Working After Changing Routers Internal Ip

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

General :: Multiple Servers Or One Server With Multiple VMWare?

Feb 7, 2011

I'm looking at setting up a couple automated systems: Here are a few examples:

* Internal accounting system to download and process emails
* Public web server to visit

I could put each system on its own separate box -- for example, it's generally good practice to separate anything that external users have access to (such as a webserver) from internal processes such as accounting. Now, rather than dishing out the money for two separate servers, could I get away with just installing new instances of VMWare on the same box for each system?

To give you an idea, these are not large scale computationally sensitive systems. The accounting one is simply downloading and tallying emails, and the latter is just a webserver with maybe 5 hits per day on a good day. I could definitely pick up a new box for say $50, but I wanted to know the general practice of using VMWare on the same box versus two separate boxes.

View 2 Replies View Related

Ubuntu Servers :: Creating Virtual Apache Servers?

May 3, 2010

I have Webmin installed on an Ubuntu server. I currently have a successful apache server running on port 80, however I want to create a virtual host on port 81. When I try I go to servers->Apache Webserver-> Create Virtual Host I change the port to 81 and the document root to /var/port81www then I click create. How ever when I goto 192.168.1.5:81 (local ip, I know I have to port forward but its not even working local) it does not work.

View 5 Replies View Related

Server :: Possible To Use Multiple SSL Certs For Same IP In Apache?

Sep 2, 2009

Is it possible to run multiple SSL enabled sites (each having it's own SSL certificate) off of one IP address, or do I need a separate IP for each one? Any links to conclusive web pages.

View 3 Replies View Related

Server :: Multiple SSL Certificates On Apache

Apr 4, 2010

I'm trying to set up a 2nd SSL cert on a different domain on a server, each domain has its own IP address, the problem is the Web developer that configured the first domain specified ssl keys for the primary domain in both the vhost config in httpd.conf AND in the ssl.conf config files. If I attempt to remove the keys form ssl.conf the server will not start up. and with them there It will not start up if I specify keys for the secondary domain.

ssl.conf
Code:
LoadModule ssl_module modules/mod_ssl.so
SSLCertificateFile /etc/pki/tls/certs/primary.com.crt
SSLCertificateKeyFile /etc/pki/tls/certs/primary.com.key
SSLCertificateChainFile /etc/pki/tls/certs/primary_gd_bundle.crt

View 14 Replies View Related

Ubuntu Servers :: Windows DHCP Server - Multiple Boot Servers ?

Apr 1, 2011

I'm curious if anybody can shed some light for me in this department. We're in a large environment with a Windows DHCP Server. We have been tinkering with LTSP on Edubuntu as thin and fat clients. It works great, but right now we just have 1 server handling the lab, which works fine unless we want to expand, which may be very possible.

These are the instructions I received:
Login to your windows server and load the DHCP configuration screen
Create a DHCP reservation for the MAC address you obtained
Add the configuration options below to enable the machine to boot from the LTSP server
017 Root Path: /opt/ltsp/i386
066 Boot Server Host Name: <ip address>
067 Bootfile Name: ltsp/arch/pxelinux.0 # Specify CPU architecture in place of 'arch', for instance 'i386'

From: [url]

I'm curious, what if I want to have multiple Ubuntu servers on the network that I want to have bootable? For example, let's say I have 3 labs, and 3 servers. Server A to Lab A, Server B to Lab B, and Server C to Lab C. I want all C's computers to boot to C, and B to B, A to A, etc.

1 - How would I add multiple entries on the Windows DHCP Server to allow all 3 (A B C) servers to boot?

2 - How would I be able to isolate the clients so ONLY Lab A clients boot to Server A, etc?

View 7 Replies View Related

Software :: Apache VirualHost Multiple Domains Single IP?

Jan 12, 2010

I am having a problem with apache's virtualhost directive hosting multiple domains on a single IP with Apache 2.2 on Fedora 11. For example i have domaina.com and domainab.com pointing to the same IP address and have my httpd.conf configured like so:

NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot /www/domainA

[code]....

The problem is when i navigate to either domaina.com or domainb.com i get the default Apache page. Its like it is only accepting the default DocumentRoot directive.

View 3 Replies View Related

Programming :: Multiple Virtual Host Configuration In Apache

Feb 20, 2009

How to give mulitple virtual host in apache. I want to access all my sites with ip 192.168.1.125

For ex :if i want to access dpm.net it should have the ip 192.168.1.230 with port 80 & for persur.net it should have the same ip 192.168.1.230 with port 80

After restarting the apache servers.I am unable to run both the applications in a single time.

For that i gave Include /etc/apache2/sites-enabled/[^.#]* in apache2.conf. But still its not working.

View 2 Replies View Related

General :: Apache Directory Structure With Multiple Hosted Languages

Feb 22, 2011

I will be doing actual development and testing on the same machine as the server. It is a single user machine in the sense that I will be the only one working on the machine. There will be multiple hosted languages, specifically PHP and RoR while possibly expanding later. I'd like the setup to translate well to a production environment. With those 3 things in mind there are a couple of things I've had in the back of mind.Seeing as it's a single user machine I haven't been able to decide whether or not I should be working on things out of my home directory or if they should be located outside of it.I'm feeling that outside of a user directory would be better as it would translate better to a production environment, but I'm also not sure if that will come with any permission annoyances or concerns seeing as I'll be working on the same machine. Hosting multiple languages seems like it may be a bit quirky. With PHP I've found you're generally just dumping the project somewhere in the document root where as something like a Rails app you have the entire project and you only want the public directory in the document root.

View 1 Replies View Related

General :: Multiple Instances Of Apache On One Physical Server - Configuration

Apr 2, 2011

I have to run multiple instances of apache on the same physical machine, as we have different OAM policies for different domains.is in the httpd.conf file can I have ServerName same in two instances of apache, like

ServerName: prod_machine (actual machine name)

In the vhconf files I do have different servernames for virtual hosts. Apache instances are running on same IP but different ports. I am including various vhost files in the main httpd.conf file. Can I skip servername in the main httpd.conf file and include different servernames in the virutal hosts configs. OS: Solaris10

View 1 Replies View Related

Ubuntu Servers :: Backup Multiple Servers ?

Jan 19, 2010

I currently have a group of 3 servers connected to a local network. One is a web server, one is a mysql server, the other used for a specific function on my site (calculation of soccer matches!).

Anyway, I have been working on the site a lot lately but it is tedious connecting my USB hard drive to each computer and copying the files. This means I am not backing up as often as I should...

I have a laptop connected to this same network that I use for development so I can SSH into to the computers, is there any software for ubuntu that can take backups of files that I choose on multiple computers? I know I could rsync but is there something with more or an GUI?

Then I can just every 2 days move the most recent backup from my laptop to the USB drive. Then I will have the backup stored in 2 places if things go kaboom somewhere.

View 9 Replies View Related

Ubuntu Servers :: Multiple FTP Servers On One Machine?

May 20, 2010

I'm running Ubuntu Server 10.04 and have a secure (SSL/TLS) FTP server on it. However, I'd like to use this FTP server to update programs I made using Microsoft Visual Studio. Unfortunately, in Microsoft's infinite wisdom, secure FTP servers cannot be used. Rather than use an insecure FTP server, I want to set up my secure FTP server to be able to access whatever I need to on the machine, and then add an insecure FTP server that only has access to the directory where I put my update files. I am currently using vsftpd as my FTP server. Is there any way that I can set up two FTP servers on this single machine?

View 6 Replies View Related

Ubuntu :: Vhost - Only Shows One Site Correct?

Apr 15, 2010

I got my VPS last day and i deside to setup everything myself, but i just came to virtualhost in apache when i got stuck.

i have Ubuntu Server 9.10 whit Apache2

Let me begin to show my config files.

ports.conf

Code:
#NameVirtualHost *:80
Listen 80
<IfModule mod_ssl.c>
# SSL name based virtual hosts are not yet supported, therefore no
# NameVirtualHost statement here

[Code]....

View 2 Replies View Related

Server :: Php Not Working On One Vhost, But Works On All Others?

Dec 18, 2010

I just added a ssl vhost.php files are not running on it, they just get downloaded when I click them. All my non-ssl vhosts were added by the admin software of my hosting company, but I had to manually add the vhost entry for my ssl vhost.Here is the entry I added for my ssl vhost:

Code:
<VirtualHost www.vhost.com:443>
DocumentRoot "/var/www/vhosts/vhost.com/httpsdocs"

[code]....

View 1 Replies View Related

Debian Programming :: Vhost Listing Script?

Sep 23, 2015

I run a small shellserver for my friends, and added a few IP's for vhosts. I tried google, but found nothing so I wonder if vhost listing script for IPv4 and IPv6?

View 1 Replies View Related

Server :: VHost And Configuring VPS - Importance Of Hostname?

Jan 23, 2010

During a request of a VPS, the provider asks me for a hostname and for the VPS I have requested which will run on a Debian. I entered 'dryaf' as hostname. What I want to do with this VPS is to point a website to its IP. I learn that I can create a vhost and configure VPS to redirect each domain name to its folder using vhost but I didn't learn any importance for hostname I don't think it should be mandatory localhost or has the form domain1.com so during request I just tipped dryaf for the hostname of the VPS. Should the hostname follows a special rule for giving it a name or no?

View 6 Replies View Related







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