Server :: Configure Apache To Host 5 Domains As Virtualhosts In The Same IP Address?

Jun 2, 2011

I've been for a while trying to configure my apache to host 5 domains as virtualhosts in the same IP address, but seems that neither one makes it through... it always takes first one, because it is the default:

NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin xxxxxxx@xxxx.net

[code]....

As you can see I tried the ServerName with the http://, in quotes, without it...

View 11 Replies


ADVERTISEMENT

Server :: Configuring Php For Virtualhosts In Apache

Jun 6, 2010

I am using the virtualhosts feature of Apache web server to host multiple domains on a single web-server. Is it possible to have different settings for php for different domains?

For eg:- I have mydomain1.com and mydomain2.com hosted on the same server. I want php scripts of mydomain1.com to connect to database but prevent database access for scripts of mydomain2.com. There are many php functions that I want to restrict for mydomain2.com.

View 5 Replies View Related

Red Hat / Fedora :: Build A Server To Run CentOS5 To Host Domains?

Jul 6, 2010

I'd like to build a server to run CentOS5 to host domains & run Boonex's Dolphin 7. I can't afford the hardware at present, but do have a spare laptop to test with. My two questions:

1) Is is possible to create a build on my laptop, with CentOS, PHP, Dolphin 7, DNS etc, and then create an image to transfer to the future hardware server when constructed? If not, are there alternatives e.g. to copy settings, and then paste then onto the new CentOS install? Anything else I should consider for doing this future move?

2) I presume it's not possible to transfer from 32bit (now) to 64 bit (possibly later) CentOS5?

View 1 Replies View Related

Ubuntu :: Unable To Configure Ip Address - Unknown Host.

Aug 10, 2010

this issue which has suddenly occurred on both my Desktop and my Laptop. When I try to configure an IP address to any interface I get the following error....

uadmin@Ubuntu:~$ ifconfig br0 addr 192.168.10.1/24
addr: Unknown host
ifconfig: `--help' gives usage information.
uadmin@Ubuntu:~$

I get this for ethernet interfaces as well. I do not understand what is different as I was able to configure the ip address only the day before yesterday on the laptop..? The Desktop has had this issue for about 3 weeks now.

br0 Link encap:Ethernet HWaddr 32:70:40:91:06:25
inet6 addr: fe80::3070:40ff:fe91:625/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0

[Code]....

View 2 Replies View Related

Server :: Apache 2.2 Configuration - Arbitrary Domains Redirection Allowed

Oct 20, 2010

I try to fix bugs on my web server. The remote web server allows redirects to arbitrary domains. Description : The remote web server is configured to redirect users using a HTTP 302, 303 or 307 response. However, the server can redirect to a domain that includes components included in the original request. A remote attacker could exploit this by crafting a URL which appears to resolve to the remote server, but redirects to a malicious location.

View 1 Replies View Related

Server :: Tunnel Apache Virtual Host To An Internal Apache?

Jan 24, 2010

I am upgrading my server and I have a lot of sites. Since I cannot take my server down for a few days, maybe a week until I manage to migrate all the sites to the new machine, I figured I could migrate them one by one. After migrating one, I would somehow tunnel the requests of that name virtual host to my internal machine. When everything is migrated, I would then switch the machines, update ip's and stuff and everything will work just fine.

However I cannot seem to find a way to do this tunneling. is this at all possible? If not, what alternatives do I have?

View 5 Replies View Related

Ubuntu Servers :: Configure Virtualhosts With Webmin On 9.10 Karmic Koala

Sep 16, 2010

I'm a bit of a Nooob to Virtual hosting. On my internal network 192.168.1.x I have a dns server running bind9 My DNS / web server is 192.168.1.3 I have succeeded in getting [URL] to resolve and it goes to my web page in /var/www/ Now I want to get say [URL] to go to /var/www/music/

1. What's the best way to go about this?
2. Can I configure it using webmin or do I just do it the old fashioned way through a terminal?
3. I tried virtual hosts via the following method

Added to /etc/apache2/sites-available/default
NameVirtualHost 192.168.1.3:80
Then created
/etc/apache2/sites-available/music.7rocks.com
<VirtualHost 192.168.1.3:80>
ServerName music.7rocks.com
ServerAlias music.7rocks.com

Then

[Code]....

View 4 Replies View Related

Server :: Apache Server Not Recognizing Virtual Host Fedora 12

Apr 17, 2010

I installed apache server on my Fedora 12. Its showing the test page 127.0.0.1, but when I give the address 97.168.234.76 (0r www.chaalu-kam.com), it tells that the requested url could not be retrieved.

I have made the following additions to the /etc/httpd/conf/httpd.conf file

Code:

In addition to this, I have added this to my /etc/hosts file

Code:

I wanted to test the Apache server on my laptop only by putting an html file in /var/www/html and naming it as index.html. I want this index.html page to be displayed when I put www.chaalu-kam.com in my browser. What should I do? My firewall is off too

View 10 Replies View Related

Server :: Configure Postfix To Relay Mail To Multiple Internal Mail Servers With Different Domains?

Aug 6, 2010

Two exchange servers internally. One is setup for example.com (192.168.1.10) and the other is setup for example2.com (192.168.1.20) Both are behind a single public IP.

I want to use postfix to sit in front of the two exchange servers. Postfix will accept mail for both domains and relay to the appropriate server. I have postfix installed with only defaults at this point.

View 2 Replies View Related

Server :: Apache With Virtual Host ?

Oct 5, 2009

On my server I have connected domain: www.my-first-domain.com which is installed in /var/www/first

For that domain I have installed virtual host.

Quote:

I dont know why, when I will put address my-first-domain.com instead of www.my-first-domain.com server redirect that domain to folder /var/www/.

View 8 Replies View Related

Server :: Connect To Address 10.0.0.100 : No Route To Host

May 12, 2010

i wanaa to config tlenet server and did the steps to enable it

but when i try to connect to server this error show :

telnet : connect to address 10.0.0.100 : No route to host
telnet : Unable to connect to remote host : No route to host

[URL]

View 10 Replies View Related

Server :: Apache Disable SSL On A Virtual Host

Jan 22, 2010

I'm running Apache with mod ssl, with a php app using ssl. https://www.example1.com

I've made a virtual host to host a simple static site which I dont want SSL for.

When I try and get to the site it redirects me to [url] which gives a certifcate error and shows the site from example 1.

Config below:

View 2 Replies View Related

Server :: Apache Virtual Host Setup

Oct 29, 2009

I have 4 domains registered through godaddy. I have a dell poweredge box with one static IP hosted somewhere. I want the 4 domain to resolve to four different sites. I have already created 4 different sites in apache with four different aliases and has enabled it.

eg
alias /a /var/www/a
alias /b /var/www/b
alias /c /var/www/c

I want to acomplish.

www.a.com ==> xx.xx.xx.xx/a
www.b.com ==> xx.xx.xx.xx/b
www.c.com ==> xx.xx.xx.xx/c

I tried with godaddys forward with masking option. It works but I can't hide xx.xx.xx.xx/a in the links. Whats the best approach? One limitation is I cannot use the webhosts name servers. How do I set this up with name based virtual hosting? Do I setup a DNS server in the box?

I do have a dns host name for my box which is publicy accessible. Some my.ca.examplehost.net

View 3 Replies View Related

Server :: Apache With Wildcard SSL And Virtual Host

Apr 28, 2009

I'm using Apache 2.2 to host multiple subdomains using a single SSL certificate (a wildcard certificate e.g. *.mydomain.com) and, yes, it works! Everything seems to be served correctly and the browsers are pretty happy.

And you can also have the non-SSL sites (virtual hosts on port 80) on the same IP. (That's covered elsewhere)

For those that want similar functionality here's my discovery...

My configuration is like this:

ssl.conf:

Code:

I would have to say that I don't believe that this will work if you are not using a wildcard SSL certificate and having anything other than subdomains under that wildcard.

It is somewhat limited in scenario where this is useful, but for a set of company websites that should be under SSL, this can be tremedously useful when you have a single IP.

View 2 Replies View Related

Server :: Different PHP Versions Per Apache Virtual Host

Sep 10, 2009

I'm running XAMPP 1.7.2 on Ubuntu 8.10 (Linux dt19.im.local 2.6.27-14-generic #1 SMP Tue Aug 18 16:25:45 UTC 2009 i686 GNU/Linux) and am using the PHP 5.3.0 Apache module as standard. For one virtual host I'd like to use PHP 5.2.X as it is part of a project which has a lot of legacy code which is not compatible with PHP 5.3.0. The virtual host configuration block and the applicable directory directive are as follows -

Code:

Checking phpinfo() output on the above virtual host (or using the default virtual host directive and accessing it via http://localhost/[SNIP]/[SNIP]/phpinfo.php rather than [url] shows PHP 5.3.0 is running. After applying minor tweaks such as adding ScriptAlias or SetEnv options the problem persists. I've Googled for a good while and have checked the permissions and the like and tried the advice of other users (XAMPP or otherwise) either resulting in PHP 5.3.0 being used or a HTTP 400 bad request/invalid URI error. I've stuck with the configuration above as this is correct according to the PHP manual.

FYI cgi-bin/php-5.2.6 is a soft symbolic link to /opt/lampp/bin/php-5.2.6 (I've added the FollowSymLinks option to the cgi-bin directory directive in httpd.conf). I've tried installing php5-cgi from the Ubuntu repos and setting it up in a similar way, to no avail. I've also tried copying the executables into the cgi-bin directory, pointing the Action line directly to bin/php-5.2.6 and dropping the -c /opt/lampp/etc/php.ini-pre1.7.2 option in the Action line. I've even tried commenting out the LoadModule lines for PHP which results in a HTTP 400 bad request/invalid URI error. This demonstrates the fact that the PHP CGI use is being ignored.

I've checked httpd.conf and the extra/httpd-*.conf files and ensured all required includes are being loaded. I know that it's probably something stupid on my part which is causing this! Given that I've tried PHP CGI builds in the Ubuntu repos I don't think this is an XAMPP-specific issue.

View 1 Replies View Related

Server :: Accessing An Apache Virtual Host ?

Jan 19, 2010

One of our Apache servers, version 2.2.3, is running three virtual hosts on it. However, while two are accessible, gray.mgh.harvard.edu, www.plastimatch.org, the third, cmrol.mgh.harvard.edu cannot be reached by any remote host.

I am at a loss as to why this is occurring. To that end, I am including the httpd.conf file as an attachment in the hopes someone can see what I missed, and help correct this issue.

View 4 Replies View Related

Server :: Apache 2.2.14 Ignores SSL Cipher In Virtual Host

Feb 23, 2010

I'm trying to figure out why Apache is ignoring SSL Cipher statements when placed inside a Virtual Host. Specifically I'm trying to disable SSLv2 and only allow SSLv3 or TLSv1

In httpd-ssl.conf I have the following

Code:

And when I try and connect, I get the expected results.

Quote:

In my virtual host statement I have

Code:

The only difference between the two is the httpd-ssl.conf has -ALL in the CIPHER, and the virtual host entry has ALL. However if I try and change the ALL statement in the virtual host entry to -ALL I get the following error in my logs & get no content.

Quote:

Why it's not working in the virtual host statement? Unfortunately as many of you are probably aware it's impossible to gain PCI certification with SSLv2 enabled.

View 5 Replies View Related

Server :: Authenticate Users To Apache By Host/ISP And Password?

Aug 13, 2010

I am wondering how websites like banks are able to determine if you have previously used a certain computer to access the website, even if your router's IP address may have changed and your system's cookies have been cleared. I have users that need to access our HTTP intranet from outside locations. Those locations will have dynamic IP addresses most of the time, so I can't just "allow from [ip]" in my Apache proxy configuration. Originally we considered a VPN, but determined that a VPN will be overkill to access just an internal website, since we do not want external users to have permission to the rest of the network, only the website.I currently have it working over HTTPS with basic authentication against an internal LDAP server, but I want a little more security for such an important website.

crappy diagram:
[user]-->(internet via https)-->[apache gateway]-->(intranet)-->[http server]

View 3 Replies View Related

Server :: Name Based Virtual Host For Apache And Tomcat

Jul 22, 2010

I am having two domains. for ex: www.example1.com and www.example2.com. These two domains need to be hosted under one ip. Yes by configuring name based virtual host we can do that. But, my question is my first domain(www.example1.com) need to be hosted by Apache web server, and my second domain(www.example2.com) need to be hosted by Tomact. Is it possible to configure name based virtual host for a scenario like this.

View 6 Replies View Related

Ubuntu Servers :: Apache Use Server Name Instead Of IP Address

Feb 25, 2010

I've setup a Ubuntu 9.10 LAMP server to host a word press blog on an intranet. I've got everything working except the url for the site.The IP address of the server will take me to the site URL.../But I'd rather use the server's name instead of the IP address URL...When i try to go to URL... in Firefox or IE it give me a server not found page and changes the URL to URL...I also have Webmin installed on the server and I've been playing around with the Apache module and can't figure out how to set it so i can use the server name instead of the IP address to get to the site.

View 6 Replies View Related

Server :: Apache Virtual Hosts With IP Address?

Jul 2, 2010

What is the (officially) proper way to configure Apache so that a given IP address can have two or more virtual host names, each going to different distinct configurations (e.g. with different DocumentRoot, Alias, etc), and also do this for the IP address so that it goes to a designated configuration rather than defaulting to the first or a random host name?

Apache documentation does not appear to address this. If so, it has it hidden in a non-obvious place.

View 7 Replies View Related

Networking :: Apache Server - Host Local Website Within Network

Jan 11, 2011

I am trying to host a local website(an wiki application) within a network. Is it necessary that all the files I need to upload should be in the var/www?

View 8 Replies View Related

Server :: Apache 2.0 - Setup SSL Client Authentication On Only One Virtual Host

Aug 18, 2010

I was trying to setup SSL Client authentication on only one virtual host. Here is a brief excerpt sample of my conf file for the virtual host:

<VirtualHost xx.xx.xx.xx:443>
SSLRequire %{SSL_CLIENT_S_DN_O} eq "something"
SSLVerifyClient require
SSLVerifyDepth 2
</VirtualHost>

But when I try to check for syntax errors tells me SSLRequire not allowed here I do not want to add SSLRequire on the main httpd.conf because I only want it for one virtual host. The rest of the virtual hosts do not need it.

View 2 Replies View Related

Server :: Apache Refuses To Start Using PerlModule And Virtual Host

Nov 12, 2009

I'm trying to install two instances of OCS Inventory on the same machine using virtual hosts in apache. The apache configuration for it is in it's own file and it works fine without any virtual host. If I add it apache refuses to start without giving any error message. I narrowed it down to some lines loading perl modules, and if I comment them away apache will start again. Some of the modules work, but some of the ones specific to OCS Inventory will not work. I can't understand what the difference is between loading it in a virtual host or not, it doesn't make any sense to me!

View 2 Replies View Related

Server :: How To Configure Apache (2.2.11) With SSL

May 13, 2009

I am making a webserver running apache2.2.11. The webserver is running fine. I didn't configure/enabling apache with ssl when compiling. So how do I get my webserver to run the SSL? As far as I now apache2.2.11 i does not require to download mod_ssl and openssl, to have the webserver run SSL, But I should have something like this:
# /configure --prefix=/usr/local/apache --with-ssl=/usr/bin

When configuring. Is there a way I can enable it now and do I need to install something before enabing it? Or can I just redo this:
# /configure --prefix=/usr/local/apache --enable-ssl
And then rewrite the old version I have with no problems?

View 2 Replies View Related

Server :: Configure Address Of Next Level DNS In BIND Server?

Sep 24, 2009

I need to know how to configure the address of the next level DNS server in my BIND server. im in a FEDORA 10 system.

View 3 Replies View Related

Ubuntu Servers :: Apache Virtual Host To Access Internal Server?

Apr 20, 2010

I'm not sure is this is possible or not, but what I would like to do is take my public address mydomain.com and configure a virtual host something.mydomain.com only instead of having the content on the same server I would like it to point to the IP of my virtual machine that is in my private network and display that page publicly. Does anyone know if this is possible, or how to do it? I have done this with port forwards, but would like them both to be on the same port.

View 3 Replies View Related

Server :: Configure Sendmail As Send-only Sever For Web Host

Feb 21, 2010

I am trying to set up sendmail on my intranet (home) webserver, so that it will send mail via my ISP. I have searched for similar threads including this thread, but the responses do not seem to have solved the problem. All I want is to call sendmail from Perl, to post myself the responses to a test form I am building, using my normal internet mail address. I do not want to receive or relay mail from any host except the web server itself (127.0.0.1).

I have edited sendmail.mc to define SMART_HOST as my isp's mail server and MASQUERADE_AS to be my local network name (which is not a registered domain - it is just the name I have given my home intranet). I have run make and built a fresh sendmail.cf, then restarted sendmail.

Using my form, I am able to submit the message to sendmail, but after 40 seconds the mail log shows a message

Code:

View 9 Replies View Related

CentOS 5 Server :: Configure The Sendmail Smart Host?

Dec 29, 2009

I have setup CentOS 5.2 with Nagios to monitor my network and have that configuration almost done. I have also setup Sendmail to forward all mail (really only Nagios notifications) out to my Exchange server using define('SMART_HOST', 'exchange.domain') in the sendmail configuration file and it seems to be working correctly.is there a way to configure Sendmail to forward all mail out through my Exchange server as it is now but send mail out to the internet itself if the exchange server is unavailable, somewhat like a failover configuration.

View 1 Replies View Related

Server :: Httpd -S Not Found Having NameVirtualHost *:80 Has No VirtualHosts?

May 12, 2010

I have 5 websites running in a reverse proxy environment.On main server I am getting this error

Code:
NameVirtualHost *:80 has no VirtualHosts
[Wed May 12 12:18:10 2010] [warn] NameVirtualHost *:80 has no VirtualHosts

[code]...

View 11 Replies View Related







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