VirtualHost Directive

Jan 14, 2007

I am getting this error in apache,

[warn] VirtualHost xx.xx.xx.xxx:xx overlaps with VirtualHost xx.xx.xx.xxx:xx, the first has precedence, perhaps you need a NameVirtualHost directive

View 1 Replies


ADVERTISEMENT

Virtualhost

Jan 10, 2007

Virtualhosts have got me stuck, I was wondering if someone could help me out.

It seems as though no matter what I try, even though I've read over 3 tutorials I can't get virtualhosts working properly.

Basically I have the

documentroot set to /var/www/html/

I'd like to create a virtualhost (I guess name based?) which has a document root of

/var/www/userdata/

Something like this is what I'm trying to accomplish:

Code:
<VirtualHost data.jcink.com:80>
ServerAdmin bleh@bleh.net
DocumentRoot /var/www/html/userdata
ServerName data.jcink.com
</VirtualHost>
So when someone goes to data.jcink.com it loads up /userdata/. And have all the other subdomains on my site continue to stay where they are.

But every time I try to do anything like that, it doesnt work. All I'm looking for is the proper code to put in the config to get it done, and if that's possible...

View 14 Replies View Related

VirtualHost

Mar 1, 2007

I'm trying to configure name-based virtual hosting, and I'm SO close, but I've got a question...

First off, here is the relevant info from httpd.conf

Code:
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>

<VirtualHost *:80>
DocumentRoot /home/thatscri/public_html
ServerName thatscriptguy.com
<Directory "/home/thatscri/public_html">
allow from all
Options +Indexes
</Directory>
</VirtualHost>

<VirtualHost *:80>
DocumentRoot /home/thatscri/public_html
ServerName www.thatscriptguy.com
<Directory "/home/thatscri/public_html">
allow from all
Options +Indexes
</Directory>
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "/home/billiards/public_html"
ServerName www.billiardstalk.com
<Directory "/home/billiards/public_html">
allow from all
Options +Indexes
</Directory>
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "/home/billiards/public_html"
ServerName billiardstalk.com
<Directory "/home/billiards/public_html">
allow from all
Options +Indexes
</Directory>
</VirtualHost>

1. Does that look alright? Is there anything in there that should be changed up any?

2. The only way that I could get the websites to work with www and without www was to add two virtualhosts for each site. Is there a way around this?

View 2 Replies View Related

Virtualhost On FTP

Nov 10, 2007

I'm trying to configure my ftp server (lateste proftpd) and I am stucked on virtualhosts.

I'd like to have two different domains have each their own anonymous access, but I only have one IP on my server.

As you might know, ftp does not handle the HOST field in its header as the HTTP protocol does... so I just can't seem to get it work out... I tried adding an alias IP to my main interface, it works great of course but only when I connect from my server to my server...

Currently working on debian ETCH with latest bind, mysql, proftpd and apache2

View 3 Replies View Related

For The RLimitCPU Directive In Httpd.conf

Jun 6, 2009

For the RLimitCPU directive in httpd.conf

when i set a limit say RLimitCPU 20 30

for a dual core or quad core, does that mean 20% of each cpu, so for a dual core its will be 40% total (20% x 2 cpu) or is it 20% total of all cpu?

View 1 Replies View Related

Error Or Timeout Occurred While Processing This Directive

Jul 20, 2009

I am having the error in all the cpanel of the server when i contactected the cpanel they asked to change the permission of the all the domains using the bash command can one can help in running the commands so that all the permission changes properly ....

View 10 Replies View Related

ServerLimit Directive Does Not Work On Debian Etch

Oct 28, 2007

We switched to Debian Etch on our server. But we are facing a real big problem. We can not increase the MaxClients directive on Apache. It gives this error:

WARNING: MaxClients of 500 exceeds ServerLimit value of 256 servers,
lowering MaxClients to 256. To increase, please see the ServerLimit
directive.

ServerLimit is already listed on our httpd.conf. But it does not make any difference.

<IfModule prefork.c>
StartServers 20
MinSpareServers 10
MaxSpareServers 15
StartServers 5
MaxClients 500
MaxRequestsPerChild 3000
ServerLimit 600
</IfModule>

How can we increase the ServerLimit?

View 2 Replies View Related

Configuring Apache Virtualhost SSL

Dec 10, 2013

I am really having trouble getting a virtualhost to work for an SSL certificate.. my browser just will not load the page..I have tried several different articles on how to setup a virtualhost and none of them seem to work.

My ssl.conf [URL] .....

*Note: I did purchase an SSL certificate - it is not self signed.

View 13 Replies View Related

[a Fatal Error Or Timeout Occurred While Processing This Directive]

Jan 9, 2006

HI

I'm using CPANEL/WHM in my server

I tried to change the the backup bath to /backup

but it show's this error

[a fatal error or timeout occurred while processing this directive]

any idea ??

View 9 Replies View Related

A Fatal Error Or Timeout Occurred While Processing This Directive

Jul 11, 2007

Getting this error constantly when accessing user's cpanel.

This shows up in the dedicated IP address column/row only

a fatal error or timeout occurred while processing this directive

I did /scripts/upcp --force numerous times, did not fix the error.

My resolv.conf is fine too

View 6 Replies View Related

Cpanel Issue [an Error Occurred While Processing This Directive]

Nov 7, 2007

I got a dedicated box recently and have made quite a few changes some of which I learnt about while making them. While this may sound like a silly thing to do I think it's a great learning curve.

I've come across an issue that I cannot find a fix for it is

Quote:

Unable to understand response from admin bin: apache sent: GETDOMAINIP xxxxx received:[]: Illegal seek at /usr/local/cpanel/Cpanel/AdminBin.pm line 140.
Cpanel::AdminBin::adminfetch('apache', '/usr/local/apache/conf/httpd.conf', 'GETDOMAINIP', 'scalar', 'xxx.com') called at /usr/local/cpanel/Cpanel/UserDomainIp.pm line 23
Cpanel::UserDomainIp::getdomainip('xxx.com') called at /usr/local/cpanel/Cpanel/ExpVar.pm line 184
Cpanel::ExpVar::expvar('$hasdedicatedip') called at cpanel.pl line 1748
main::execiftag('<cpanelif $hasdedicatedip>') called at cpanel.pl line 4419
main::dotag(undef) called at cpanel.pl line 4308
main::cpanel_parseblock('SCALAR(0x90e7eb8)') called at cpanel.pl line 4262
main::cpanel_parse('GLOB(0x9336048)') called at cpanel.pl line 1104

note I have changed the domain values to xxx.

View 0 Replies View Related

Getting 403 Forbidden Error When I Define Virtualhost

May 21, 2008

I have apache set up and it works fine from the DocumentRoot when I access the server via the IP. I've set up the following virtualhost

<VirtualHost *:80> .....

View 4 Replies View Related

VirtualHost Troubles With Debian Lenny

Jun 10, 2009

I use Debian Lenny and I would like to host 2 sites on my apache web server.
So I created two virtualhost files site1 and site2.

Site 1 configuration file:

<VirtualHost *:80>
ServerAdmin mymail@admin.com
ServerName www.mydomain.com
ServerAlias mydomain.com
DocumentRoot /var/www/premier
<Directory /var/www/peremier>
[...]

Site 2 config file:

<VirtualHost *:80>
ServerAdmin mymail@admin.com
ServerName lemonsite.mydomain.com
ServerAlias /lemonsite
DocumentRoot /var/www/lemonsite/
[...]

Obviously I a2ensite both sites and reload Apache2.

When I digit lemonsite.mydomain.com on address bar of firefox, it returns Address not found.

When I digit MYIP/lemonsite, I get a 404 not found error generated by www.mydomain.com CMS.

When I digit MYIP on bar I get www.mydomain.com.

I would like to see lemonsite.

View 8 Replies View Related

Is It Possible To Exclude A Virtualhost From Mod_security Protection?

Jan 30, 2008

Is it possible to exclude a virtualhost from mod_security protection?

I have a server with 200+ hosting accounts, but I need to exclude one of those from mod_security protection.

View 3 Replies View Related

Apache :: How To Perform Redirect Within VirtualHost

Oct 8, 2013

What is the proper syntax to perform a redirect within the <VirtualHost:443> section of the httpd.conf file?

The issue is: I have an existing login URL path that has changed slightly. As an example, let's say the old URL is:

"https://www.something.net/item1/item2/login.jsp" but now there's a "new" name for 'item2'.

I only want a user to be automatically redirected to the "new" path, but is ONLY triggered when the "old" login URL path is entered and nothing else.

View 2 Replies View Related

Plesk 12.x / Windows :: VirtualHost - No Web Hosting

Jul 19, 2015

I've a problem with my Plesk 12.0.18 Panel ,I tried to login today with Admin_User for a virtual host ,but there was a problem with logging "Error: You have entered incorrect username or password."then I used the User Administrator ,and I found "No web hosting" Under the Domain Name for the workspace !!!and the icons disappeared there are only

-DNS Settings
-Mail Settings
-ODBC Data Sources
-Remove Website

View 7 Replies View Related

Apache :: VirtualHost - Configure Subdomains?

Jan 14, 2013

I have substituted the domain names and DocumentRoot folders for generic titles, so I will refer to those where applicable in the thread as well.

Here is my httpd-vhosts.conf:

<VirtualHost *:80>
DocumentRoot "C:WebServerwww"
</VirtualHost>
<VirtualHost *:80>

[Code] ....

View 1 Replies View Related

Using Vhost.conf To Override Suexec Directive In Httpd.include

Oct 20, 2009

I need to change the server configuration on Plesk such that the SuexecUserGroup directive is removed, so the user's cgi scripts run as the apache user (www-data), rather than as the user specified in that directive (the domain user), as on an unshared (non-VPS) server. I don't care about security from other domains because only one domain runs on it anyway, so making the user domain-specific is irrelevant from a security point of view and stops some of the user's code working.

This directive is found in
/var/www/vhosts/domainname.com/conf/httpd.include
and is:
SuexecUserGroup user psacln
(this line appears twice, for ports 443 and 80)

I understand that this file can't be modified, as it may be overwritten by Plesk. Therefore additional directives must go in the vhost.conf file.

Will the following vhost.conf file do the trick and override the directives in httpd.include?

<VirtualHost domainIP:443>
SuexecUserGroup www-data www-data
</VirtualHost>
<VirtualHost domainIP:80>
SuexecUserGroup www-data www-data
</VirtualHost>

View 1 Replies View Related

Apache Logs :: Directory Index Forbidden By Options Directive

Dec 19, 2008

i have apache 2 and centos with plesk . when i see my apache error log it shows me :
[Fri Dec 19 05:56:35 2008] [error] [client ::1] Directory index forbidden by Options directive: /var/
www/html/

View 1 Replies View Related

Apache :: Warning - SuexecUserGroup Directive Requires SUEXEC Wrapper

Nov 27, 2013

Why this error might have started to appear? I am fairly new to apache and was trying to harden it up.

I am use CentOS:

Server version: Apache/2.2.25 (Unix)
Server built: Oct 7 2013 17:21:18
Cpanel::Easy::Apache v3.22.14 rev9999

I was trying to add a group to control access to specific groups to enforce some security:

chown -R root:root /usr/local/apache/bin
chmod -R 770 /usr/local/apache/bin

chown -R root:root /usr/local/apache/conf
chmod -R 770 /usr/local/apache/conf

groupadd apacheadmin

groupadd apache
useradd -d /usr/local/apache/htdocs -g apache -s /bin/false apache

I think this is a permission issue.

View 1 Replies View Related

Apache :: Wordpress Redirect Breaks Virtualhost

Feb 9, 2014

Running Apache 2.2.22 on Ubuntu 12.04...Here's (in addition to default) my papertower config in sites-available: URL....

When I restart, I get this message: [URL] ....

I'm coming from Apache on Windows and trying to set up the same workflow I had there. Basically, if I placed a folder in /www/papertower/ it would become accessible via directoryname.papertower.dev after adding the host.

I'm having a strange issue getting it going again. Oddly, when I didn't have the wordpress config set up properly and went to site.papertower.dev, it would give me the "failed to connect to database" message. This made me happy, as it meant it was pointing at the right folder. Once I fixed the database config file, however, and go to site.papertower.dev, it thinks for a moment, then goes to www.site.papertower.dev and gives me a "Oops! Google Chrome could not find www.site.papertower.dev".

I double-checked that all the appropriate mods were enabled (especially rewrite), but that hasn't made a difference.

View 4 Replies View Related

Apache Virtualhost Order Deny - Allow Works Only On Localhost

Jun 17, 2013

I have vhost setup for test of a new website. I want to allow access on the localhost, and, from one IP from the Internet (redacted). Apache serves the site just fine on the server but I can't access the site from my the "xxx...." IP.

I'm using a physical path to test from the public IP as follows:

xxx.xxx.xxx.xxx/~user/test/index.html

View 3 Replies View Related

Apache :: Virtualhost Order Deny Allow Works Only On Localhost

Jun 17, 2013

I have vhost setup for test of a new website. I want to allow access on the localhost, and, from one IP from the Internet (redacted). Apache serves the site just fine on the server but I can't access the site from my the "xxx...." IP.

I'm using a physical path to test from the public IP as follows:

Quote:
http://xxx.xxx.xxx.xxx/~user/test/index.html

Apache v2.2
RHEL6
UserDir configured/running
SuExec configured/running

Below is the relevant vhost block in httpd.conf:

Code:
<VirtualHost *:80>
ServerName test
ServerAlias test
DocumentRoot /home/user/public_html/test
<IfModule mod_fcgid.c>

[Code] .....

I don't have a FQDN as yet, so I just made a entry in /etc/hosts as follows:

Code:
127.0.0.1 test

Here is an excerpt from the Apache error log:

Quote:
[Mon Jun 17 12:02:16 2013] [error] [client xxx.xxx.xxx.xxx] client denied by server configuration: /home/user/public_html/test/index.html

I've checked the firewall and the /etc/hosts.allow- that's not it. I've read the Apache docs and in the vhost block Allow should be evaluated last, and apparently is matching localhost but is not matching my IP.

View 5 Replies View Related







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