CentOS 5 :: How To Config Apache2 To Host Websites
Jun 25, 2011
any1 know how to config apache so i can use ServerName at my web browser ?
here is what i am trying to do: i need to host a number of web sites at my mac, for example: hostone.com, hosttwo.com, hostthree.com and etc since i need to host more than one website at the same pc, i use name based virtual hosts so i have hostone at 192.168.0.1:1234 and a servername of "hostone" hosttwo at 192.168.0.1:1235 with a server name of "hosttwo" and etc
my question is , how do i config my local settings, so all of my local network computers can access "hostone" site by type "hostone" at their browser and "hosttwo" site by type "hosttwo" at their browser
View 3 Replies
ADVERTISEMENT
Apr 12, 2010
Dom0 is having public IP. I read a lot of blog and tutorials about name based and IP based hostings and also about mod_proxy. But I am unable to do.
Here is what I am trying to do. I have a webserver on public IP.Which is running Xen on it. There are 4 Guest Operating systems installed on top of Dom0 which are Dom1,Dom2,Dom3,Dom4 These are application servers which are going to serve the requests that come from the main server.Which is Dom0.
All I see is "It works" on all 4 of the hosts. On my LAN on any machine on same subnet if I do [url] of Domu1 message comes
Code:
in browser from LAN gives me a message
Code: It works.
What do I need to do on Dom0 so that requests are forwarded to the appropriate DomUs apache2 is running on all of them including Dom0.Some one suggested me to go for ReverseProxy in Apache2.
View 3 Replies
View Related
Oct 30, 2009
Bit of an odd one, this. I've migrated a website from my old server to a new machine. Both servers run Ubuntu + Apache2. Both only serve a single site, apart from the default site.I've flipped the domain name to the new IP address.The trouble is that after moving the virtual host config over into sites-available, with the necessary link in sites-enabled, Apache attempts to serve from the default web root (/var/www) rather than the actual site content (in /var/www/technology). So for example, an attempt to browse.
View 1 Replies
View Related
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
Nov 12, 2010
I am moving some websites from a shared host to a newly configured Xen based VPS with Ubuntu 10.04. A steep learning curve but I am getting there! I have a couple of sites installed on the new server and want to test them out, from what I understand I should be able to edit /etc/hosts on my desktop computer (running Ubuntu 10.04) which should automatically redirect my browser to the new server. But it doesn't seem to work.
This is what I appended to the /etc/hosts file:
12.34.56.78 www.xxxx.com
I thought that this should send any requests for www.xxxx.com to 12.34.56.78? Some googling indicated that the browsers I am using may be using DNS caching, ignoring the hosts file. I've tried clearing the cache with Chromium 7.0.517.44 (64615) and Firefox 3.6.12, and even installed a plugin in Firefox to block DNS caching.
View 9 Replies
View Related
Mar 4, 2011
I have some vhosts set up, and they work once apache is restarted. But, as a few minutes go by, all the vhosts end up going to the default apache "It Works!" page.
I don't think it's the vhost config since it does work initially (and I've triple checked it all by now).
I am running htcache (or whatever the disk caching module is called).
View 3 Replies
View Related
Jun 1, 2010
I have this intra net server project going on and now I moved to 10.04 however there are still some things that I would like to see clarification and instructions on. I am interested to set up multiple parallel websites for my apache server, however I am not sure how to do this exactly. Now I have solid address rivera.wippies.net and port 80 redirecting to my server. What I would like to get done is that I get multiple independent of each other websites for my server I was thinking of making websites like this
/var/www/site1 (which would be as rivera.wippies.net)
/var/www/site2 (which would be as rivera.wippies.net/othersite)
/var/www/site3 (which would be rivera.wippies.net/secondothersite)
etc, so that I have multiple "individual" websties for my server. Requirements would be that each of these websites could have SSL encryption as needed available too, since some of the website could have confidential information.
View 9 Replies
View Related
May 11, 2010
I've deleted /etc/apache2 and did run:
Code:
sudo apt-get -o DPkg::Options::="--force-confmiss" --reinstall install apache2.2-common
to get the default config back.
But starting the server via:
Code:
sudo /etc/init.d/apache2
results in:
Code:
Syntax error on line 161 of /etc/apache2/apache2.conf:
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration
line 160-163 look like this:
Code:
<Files ~ "^.ht">
Order Allow,Deny # line in question
Deny from all
</Files>
The funny thing is that the exact same definition is in a debian lenny server config on another server. So why did this install a not working config?
I just removed apache2 via:
Code:
sudo aptitude remove apache2
sudo rm -r /etc/apache2
and reinstalled it via:
Code:
sudo aptitude install apache2
which also did not fix the config bug?
For testing I installed apache2 on another ubuntu 9.10 and did just copy the folder /etc/apache2 to my local installation - this fixed the problem. Still, why cant I reinstall apache2 with a working config?
View 8 Replies
View Related
Apr 16, 2010
I currently have a virtual host setup to accept SSL connections as follows:
Code:
<VirtualHost *:443>
DocumentRoot "/var/www"
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem
[Code].....
How would I change it so that it can only be accessed via HTTPS ??
View 4 Replies
View Related
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?
/etc/apache2/ports.conf
Code:
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
[Code]...
View 7 Replies
View Related
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
May 29, 2011
It is possible for apache2 (debian) to host a frontpage page? All links I found from google and microsoft said that frontpage is dead. How can I host the site ?
View 4 Replies
View Related
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 http://10.0.1.100/site-a/public_html - 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
</VirtualHost>2
View 2 Replies
View Related
Sep 7, 2009
I was tryin to deploy svn on centos 5 with respect to [URL] I am stuck understandin the location svnpath parameter on svn config
[Code]...
View 1 Replies
View Related
Apr 28, 2011
I just installed 11.04 32 bit (downloaded today) in Virtualbox (4.0.6), with host 64 bit Win7. I'm trying to get Unity working. I've searched and found references to the fact that the Host graphics card must support 3D, which I believe mine does (nVidia GeForce 7900 GTX). Also found some references to try the following:
After the OS install, I did this:
sudo apt-get update
sudo apt-get install virtualbox-ose-guest-utils
Then rebooted and did this:
killall -9 gnome-settings-daemon && gnome-settings-daemon
I also installed the latest Guest Additions. In the VM settings I have the "3D" tick checked, and have 32M RAM allocated to video. But no Unity shows up, just normal desktop.
Any ideas?
View 7 Replies
View Related
Nov 18, 2010
I am having no luck configuring ProFTPd on a Debian Lenny production server we use to host our MySQL databases and a few websites. I had originally set it up so I could login and manage our internal sites, but I have the need to allow a few clients in to access their sites that we host. I am trying to root the users in their site directory, which would be "/sites/www.whatever.com/".
It just hit me while typing this. Is it possible to create a user without a shell to prevent login via SSH and set the home folder to /sites/whatever instead of /home/username? That would allow me to continue operating with my current configuration and root them in their site while preventing SSH logins.
View 6 Replies
View Related
Jul 19, 2010
Having a problem in my awstats, I'm a little lost to were to edit the config file to show all IP's and host so far its only showing up my IP and the PC's on my network and nothing else.
View 5 Replies
View Related
Jun 1, 2010
While in YAST2, everything seems to save fine except for the information in the "Host Name and Domain Server Configuration" screen. I have two servers side by side, the one works perfectly fine, the one does not. I can save the IP address and changes to DHCP and Static, but when I enter in the information for the Domain Name and Host Name, I click next, it saves, but when I go back in to it, the items I set are blank again. The boxes are not greyed out, you can type information in without error. When entering YAST, it requests the root pw which also works fine. I am not using any strange characters other than letters/numbers. I am going in to the screen by clicking network devices-->Netword Card-->Host Name and Name Server.
View 1 Replies
View Related
Nov 14, 2009
I have installed CentOS 5.4 machine named test.example.com (192.168.1.1)File /etc/hosts contains:127.0.0.1 test.example.com test localhost.localdomain localhostI have read that the loopback addres should not be assigned to host name,only to localhost and the host name should be assigned to 192.168.1.1, like this:127.0.0.1 localhost.localdomain localhost192.168.1.1 test.example.com testIs there any reason why it should be one or another way?
View 6 Replies
View Related
Apr 12, 2010
I want to block all websites except desired websites.
View 3 Replies
View Related
Jul 9, 2010
I have set up two identical websites and want them to access the same mysql database. I've entered the username/password/db name in the website database.inc file. However, one database works fine and displays correctly, the other just gives a blank page. I've tested apache and it can display a different site (one that does not access any db). So is there a configuration that i'm missing. Do i have identify the two different websites that access the db?
View 7 Replies
View Related
Sep 25, 2010
I've currently got a centos server setup in my home. It has 1 website running on it and I am using DynDNS.com's service to access the server. DynDNS works by redirecting a free url to the IP address of your server. I would like to add a second website under a different url. However, I'm not sure how to add a second IP address (which I would then use with DynDNS to create a new url).
View 3 Replies
View Related
Mar 24, 2011
I have centos 5 installed. and i use a firefox 3.6 browser on it. the problem is that whenever i open some sites like facebook, or easyxdm.com, or some others, the screen just gets hung up and the os either restarts or remains hung up.
View 2 Replies
View Related
Oct 4, 2010
I've tried to read many of the topics in this forum first and tried to find a solution to my problem, but can't find one.I'm testing CentOS 5.5, it's the first time I'm using a CentOS Linux release.I'm trying to configure the proxy "client side " on it and cannot find how to do it.On other Linux release I've used the ENV variable like "http_proxy" or "HTTP_PROXY" etc etc.This time, I don't know why but it doesn't work.I've put the name and @ip of the proxy in /etc/hosts and tried different version upper/lowercase of "http_proxy" "HTTP_proxy" "ftp_pr.." but it doesn't work.If I configure manually Firefox and puting the name or @ip of the proxy we have on our network, it works.But if I try to use ENV variable it doesn't work...
View 1 Replies
View Related
Apr 10, 2009
I tried to run system-config-kickstart when after full installed CentOS 5.3,it report error as following,does anyone face the same problem?
[root@localhost ~]# system-config-kickstart
Loaded plugins: fastestmirror, kernel-module, priorities, protectbase,
: versionlock
[code]....
View 2 Replies
View Related
Dec 27, 2009
Many Apache2 unused modules loaded. I'm going to disable some of them.But what is the command to disable the modules?
View 1 Replies
View Related
Nov 19, 2010
I have suse10 64 bit installed. I am setting up a svn server on it. After installation and adding the modules ,while reloading the apache2 it's throwing the error as: HTML Code: httpd2-prefork: Syntax error on line 113 of /etc/apache2/httpd.conf: Syntax error on line 31 of /etc/apache2/sysconfig.d/loadmodule.conf: Cannot load /usr/lib64/apache2/mod_dav_svn.so into server: /usr/lib64/libsvn_subr-1.so.0: undefined symbol: apr_memcache_add_server
View 9 Replies
View Related
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 68.178.232.100:80
no listening sockets available, shutting down Unable to open logs failed!
also what is 68.178.232.100
View 1 Replies
View Related
Dec 26, 2010
I have a lenovo x200 laptop running Fedora 14, fully up to date with the Fedora repository. Seemingly out of nowhere, some websites will no longer load. First it happened to www.facebook.com, next (after a day or so) wikipedia.org, now the Fedora forum. Other Internet access seems fine, but when I try to go to these pages I just get "unable to find host" errors. Its totally bizarre. It first happened in an airport so I thought it was just a strange network there, but now it happens at home. I can't get on these sites in firefox or elinks browsers (in a terminal) BUT I can ping both sites no problem. Also, the other computers in this house have no problem visiting these sites.
View 2 Replies
View Related
Jan 5, 2011
I have some Oracle (Unbreakable|Enterprise) Linux systems, mostly running v5.4. I'd like to migrate them to CentOS 5.4 (or 5.5... I'm not picky about that).Is it as simple as updating the repo files in /etc/yum.repos.d, and issuing 'yum upgrade', or is there further magic involved?
View 1 Replies
View Related