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


ADVERTISEMENT

Debian Lenny Hardening

Mar 19, 2009

where I can find a guide or how-to to hardening Debian Lenny web server (a xen vps one)?

View 0 Replies View Related

APC - Troubles Installing

May 2, 2008

I am trying to install APC on my server and getting the following error:

Quote:

[root@ic ~]# pecl install apc
downloading APC-3.0.18.tgz ...
Starting to download APC-3.0.18.tgz (115,957 bytes)
.........................done: 115,957 bytes
47 source files, building
running: phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
ERROR: `phpize' failed

Why am I getting that error?

FYI, if this might help:

Php version:

Quote:

PHP 5.2.5 (cli) (built: Dec 12 2007 11:48:35)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

MySQL version:

Quote:

mysql Ver 14.12 Distrib 5.0.24a, for redhat-linux-gnu (i686) using readline 5.0

I am running CentOS 4.4-32

View 2 Replies View Related

Advantage Debian 64 Versus Regular Debian

Oct 9, 2008

I just ordered a server which has that setup:

AMD Athlon 64 X2 6000+ Dual Core
8MB RAM
2x750GB RAID 1 HD

Now I wanna run it with DirectAdmin, but obviously DirectAdmin doesn´t support the Debian 64 which is installed but only 32 bit Debian.

Now I wonder wether I could setup a Debian 32 as well on that system and if yes, wether it would give me a deficit in Performance?

Or would you rather go with CentOS 64 which Directadmin supports?

View 6 Replies View Related

MySQL ERROR, Hosting Or My Script Causing The Troubles

Jun 5, 2008

I hosted one aardvark topsite @ PluginSpace.com which consist of high traffics (3500+ unique visitors/day). I'm facing max_users_connection for quite number of times and I also have complain to my hosting but I still get no luck, they fix my problem for a short period and the problem appear again after some time.

I rent myself a dedicated server with 320GB Space and 3400GB Bandwith and 2GB RAM. Everytime I manage to get a lot of traffics to my topsite, maybe 100+ online users at a time, tracked by freeonlineusers[dot]com. I'll got these errors. Can anyone tell me what can I do? Can anyone tell me more about how much visitors can a normal dedicated server handle? Is it my script problem or my server problem?

(ERROR WILL POST IN NEXT POST)

can the dedicated server stand many visitors or suppose a normal dedicated server can handle so many visitors or my hosting maintenance is poor?

View 13 Replies View Related

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

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

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

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

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

Apache :: Does Virtualhost Environment Lower Web Or Server Security

Oct 11, 2012

Does the apache virtualhost environment lower the web or apache server's security? virtualhost has no security issues.

View 3 Replies View Related

TAR Backup - Debian

May 31, 2009

I want to backup a entire folder thats in / not in any other folders.

I've tried this command but I get the error described below..

tar cvpzf opensim.tgz

tar: Cowardly refusing to create an empty archive
Try `tar --help' or `tar --usage' for more information.

The folder is called opensim. I was logged into SSH with root access and tried the command directly, not going into other folders because well I dont want to, I wanna backup that 1st opensim folder that I can see on the FTP also.

View 8 Replies View Related

Debian & Plesk VPS

Jan 9, 2009

I'm having some trouble finding a VPS host that offers Debian and Plesk. I've searched the forum but nothing's really panned out. I'm currently with Geekstorage but the server has been slow (same problem reported by others).

Anyone have recommendations for Debian + Plesk VPS host?

View 4 Replies View Related

Jre 1.5 On Debian Sarge

Jul 28, 2007

i can't get java installed correctly on my debian server.

i downloaded the .bin file from java sun's website and run it says "done."

but when i type :

Code:
whereis java
the terminal shows

Code:
host:/# whereis java
java:

View 4 Replies View Related

Debian Error 2

Dec 8, 2008

i just installed debian but when i try to start it, it just give me "error 2 " when i try to boot it

What is error 2 google gave me nothing

View 4 Replies View Related

FreeNx/Debian

Dec 13, 2007

Install Required software

NX server needs ssh and some libraries to run. These packages are normally not installed during the basic installation process.Use the following comamnd to install

#aptitude libstdc++2.10-glibc2.2 ssh

Install Free NX Server in Debian Etch

First you need to download the .deb packages using the follwoing commands
i did the three steps..

Now you need to install .deb packages in the following order this is very important

#dpkg -i nxclient_2.1.0-17_i386.deb

#dpkg -i nxnode_2.1.0-22_i386.deb

#dpkg -i nxserver_2.1.0-22_i386.deb

If you get any errors use the following comamnd to fix

#apt-get -f install

Now you need to make sure ssh and nx servers are running if not start with the following commands

#/etc/init.d/ssh start

#/etc/init.d/nxserver start
--------------------
but the problem is i cannot connect to the nx .
i installed the program on windows but what is the username and password should i use? i tried to use the root but it said that the user root cannot be used.

View 1 Replies View Related

Mysql On Debian

Jan 30, 2007

i have the vps with debian 3.1

i digit on ssh /etc/init.d/mysql start and i see this error

Starting MySQL database server: mysqld.
Checking for crashed MySQL tables in the background.
/etc/mysql/debian-start: line 13: logger: command not found

View 1 Replies View Related

Suphp On Webmin With Debian 5

Jun 24, 2009

I have just installed my vps with webmin on debian 5 and I need a guide to how to configure my system to use suphp, Ive googled it but not come back with any clear guide.

I better add Ive plunged in at the deepend and after the secuity breach at Vaserv, I can not take the easy option and install lxadmin any longer.

View 1 Replies View Related

CentOS, Debian, Ubuntu Which Is Better For Vps?

Oct 24, 2009

Which OS is better in security and easy to use for vps beginner:
CentOS™, Debian™, Ubuntu™, Fedora™, or Gentoo™.?

View 14 Replies View Related







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