CentOS 5 Server :: VirtualHost Only Loads First Host In The List?
Dec 5, 2009
I am a novice with linux but I pick up stuff pretty quick so far I have been able to figure everything else out except this, I have read all the documentation on apache 2 and getting virtual hosts to work and it appears I have everything setup right but yet I still can't get it to work, I have googgled my brains out and I still can not figure out whats going on here is my setup.I have two websites that I am trying to get to load[URL]I have webmin installed and I'm using their utilities to setup virtualhost. heres how it looks in my http config:NameVirtualHost 24.189.245.44:80 ( I have tryed * in place of my external ip)
I got a bunch of machines (~10) that I share with my co-workers. I have appropriate .ssh file(s) set up so I don't get prompt for password when I try to ssh.Currently I ssh into these hosts and then do a top to check the load before I start using the machine. Because I don't want to be on a busy host.Can someone show me how to write a script that find a least-busy host given a list of hosts to check? (hardcoded is fine)
I'm setting up a full server configuration on Fedora, moving it from Mandriva which sadly faces a rather uncertain future. Things are going well and I will be ready (and more familiar with Fedora) in time to upgrade to Fedora 15.
What I have done so far in regard to networking setup:
I first removed Network Manager and replaced it with the network service (chkconfig --level 25 network on). That put an end to the overwriting of /etc/hosts, which now reads simply:
How do you change the order of the list? I have Xubuntu 9.10 installed on a 5 gig partition. I only use it for Skype as the mic does not work in 10.04 at the moment for me.Anyway, I would like 10.04 to default to the top of the list. How do I change the order when grub loads.
We'll yesterday I got a new server and just installed Linux Debian. The thing is it's been so long (for over 5 years) that was the last time I set up virtualhosts in apache. The thing is I googled around a bit and supposedly my virtualhosts are OK, but I get this WARN when I restart apache2:
I am trying to add a virtual host to my machine by name to the IP here.It absolutely refuses to work.it is a mess server I hope to upgrade soon, but it has 2 versions of apache running together on it.The first one (php3) just proxies all the requests from 80 to 8080 which has another instance of apache running php5.I don't know what else to do, it keeps defaulting to the host header error virtual host.
Trying to get a handle on xen. I have installed Centos 5.3 and I have created one xen guest using default 192 address. I can access this guest no problem from the xen host/server but how do I setup a bridged (I assume) xen guest so it can be connected from any network within my domain, The xm host is network is 10.32.161.0
When I type in hostname -f it says unknown host in /etc/sysconfig/network hostname=servix.example.com in /etc/hosts 127.0.0.1 servix.mydomain.com localhost localhost.localdomain 192.168.1.101 example.com www.example.com in /etc/resolv.conf search servix.mydomain.com COMCAST SNS SERVERS nameserver 192.168.1.1
In linksys router I have host as servix and domain as example.com. So why is it returning unknown host?
I currently am running 10.04.1 and have successfully setup my home web server to run a single website. My current settings are:
-I have registered the domain name annarrankings.com through godaddy -A record is - host = @ and points to = 71.114.220.3 -CName is - host = www and points to = @ -on my server I have the site running in /var/www
I've done some research and found that to run multiple websites I need to setup VirtualHost.
-So I created a folder /var/www/annarrankings.com and moved my site to that folder
-Edited Apache2.conf to add the following line
-I then went to /etc/apache2/sites-enabled and copied the default file to a new file called annarrankings.com. Here's the annarrankings.com file after I edited it
-I then created a link in /etc/apache2/sites-enabled to the annarrankings.com file in /etc/apache2/sites-available
-Next I editied /etc/hosts
-When i went to enable the site using a2ensite annarrankings.com I got the following
I figured this was ok since I had already created a symbolic link earlier (a result of trying to following multiple tutorials and ..... videos at once) so I reloaded apache2. I created an index.html file in /var/www/ just for testing purposes and when I load www.annarrankings.com I get the file located in /var/www/ instead of the website located in /var/www/annarrankings.com Do I need to change my A record or CName in godaddy or did I just do this completely wrong?
Many of mails sent from my mail server that are in Queue;The main reason is deffered by domains like yahoo,aol,etc.but there is one more error that i keep getting and that is Host Unknown,Below is an example from mail log,The catch is,test mail sent on the same email id sent from my personal mail from the same server i.e. url was deliveredHowever,another mail containing client information sent from customercare@mycompanysdomain ended up in queue.
There are more examples of the same,around 20 domain have the same problem.
how to turn my computer on and browse the web. I want to host my website form my computer, only problem i don't now how to do it. It will take some time for me to understand this Os. (For now) My question is Can i use xampp linux to host my website using the security of centos. i now how to use xampp but i don't now how to use centos.? try reading around but i connot event find the yum program use to install softwares.
I installed ntop on our server, after installing it, i ran ntop as a daemon. shortly after we lost the ability to ssh into the server.tried restarting ssh, but it didn't work, so had to restart the entire server.Where should we look to find why ssh suddenly stopped?
the error ssh gave when we try to connect was like: ssh: no route to host what log files should i look at and what should i look for to find the cause of the error?
I'm having some trouble mounting an NFS share on a VM host (both CentOS 5.5):
------------------------- SAN/NAS BOX (NFS Server): ------------------------- / filesystem on VolGroup00/LogVol00 = 7.6GB A 20GB filesystem on vg_vm/lv_vm1 is mounted at /srv/vm1 A 100GB filesystem on vg_vm/lv_data1 is mounted at /srv/data1
I'm setting up apache on centOS 5.5 and administering it from another host on my LAN(this web server has no Xorg). I can ping from the config host to the web server but not the other way. My network is quite a way from being set up so i'm just configuring the web server at the moment, the simplest way i can. It's just trying to get two LAN hosts both with 192.168.1.0/24 I.Ps to talk to each other using a router to connect them.
Here are the outputs of ifconfig and netstat -rn for the web server, the config host and the router:
The ifconfig -a and netstat -rn of the config host are: lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
I have a P2000 array from HP. What I did try to do was to expand vdisk and corresponding volume. After expanding finished i saw it expanded on management tool for array but it did not expand on host. I tried to rescan devices using pvcsan, rescan-scsi-bus.sh and so on. I tried to restart the host and it did not help neither. It's two node cluster with clustered lvm volume group which is causing the problems.
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.
I installed bind & did not install chroot. I set up a fictional domain kelly.local. I am able to resolve FQDN (example: angus.kelly.local) in both dig & nslookup & ping on linux boxes.
I want to be able to resolve bare host names (example: angus) using bind. I get mixed results.
(1) linux boxes resolve bare host names & FQDNs just fine using nslookup & ping, but not dig. dig gives error:
My problem is that I can't setup a diskless environment with CentOS 5.4 (server) and CentOS 3.9 (hosts). On the host, I've recompiled the CentOS 3.9 kernel, with these mods: - added kernel level IP autoconfiguration; - added NFS file system support; - added Root file system on NFS; - added e1000 driver (the host has a gigabit network card);
Then, I have followed the guide at this link: [URL] But in my dhcpd.conf I'he put other parameters: ddns-update-style interim; allow bootp; allow booting;
i have linux server application based on centos 5 that run httpd daemon from /usr/local/pf/conf/httpd.conf which is generated from the /usr/local/pf/conf/templates/httpd.conf.apache22 file
the problem is every time i run my linux server application i am not able to access phpmyadmin unless i stop my linux server application which is stop it httpd daemon then start "service httpd start"
i have been told by forum moderator to create an alias for my phpmyadmin in Virtual Host but it stil dont work, i am not able access my phpmyadmin site
this is what i have done to solve this problem
- open /usr/local/pf/conf/templates/httpd.conf.apache22 file then look for <VirtualHost *:%%admin_port%%> - add Alias /phpmyadmin "/usr/share/phpmyadmin" (Failed) - add Alias /phpmyadmin /usr/share/phpmyadmin (Failed) - add Alias /phpmyadmin "/usr/share/phpmyadmin/" (Failed)
[Code]....
NB : my phpmyadmin is install on /usr/share/phpmyadmin with /etc/httpd/conf.d/phpmyadmin.conf as phpmyadmin configuration file
why i still cant open my phpmyadmin site ? or why i cant run phpmyadmin together with my linux server application because it use the same daemon (httpd daemon)
I'm trying to setup sendmail to use my gamil account as a mail relay but with no success. I followed these guides: [URL]and many others.my machine is a centos 5.5 vm running under opensuse host. ( I hope that its not just a virtualbox problem..)
I ended up with this setup: /etc/mail/auth/client-info: AuthInfo:smtp.gmail.com �U:root� �I:xxxxxx� �P:xxxxxx� "M:PLAIN LOGIN" AuthInfo:smtp.gmail.com:587 �U:root� �I:xxxxxx� �P:xxxxxx� "M:PLAIN LOGIN"
I have installed centOS Server edition on my laptop and installed apache and mysql on server, i wanted to understand how can i make my server on line and host my website on my own server. I am using MTNL Broad band, and i have one static ip, How to make web server in centOS 5.5.
i have a Centos 5.5 server that some staff have installed some extra packages on. I'm in the process of building a 5.6 server and want to include the packages / updates from the previous server. Can this be done easily? Was thinking of listing everything in a text file then using yum install to populate anything that the old server has that the new one doesnt?
My Dell poweredge server running CentOS 5.4 and booting kernel-2.6.18-164.15.1.el5. All boot processes seem okay and the graphical screens for CentOS operate, but just before the desktop loads the screen goes blank and the arrow/cursor is being circled by small spheres. This remains indefinitely. While the arrow is being circled, here are the results of 'getinfo.sh device'
Quote:==================== BEGIN uname -rmi ==================== 2.6.18-164.15.1.el5 i686 i386 ==================== END uname -rmi ====================
I am trying to set up samba in my CentOS virtual machine that is running on a Windows 7 host. I have found a tutorial in the How-Tos on this site but I'm not sure if they are exact and I'm paranoid about messing something up. The link to the tutorial is below. Is there anything that I should do different or anything that I should be aware of? Also, once this is set up, how do I transfer files between the two machines?
Tearing my hair out on this one a little bit, having problems sending message from web based PHP form to user inbox.I keep getting: Undelivered Mail Returned to Sender<me@mydomain.co.uk>: Host or domain name not found. Name service error for name=mydomain.co.uk type=A: Host not found.Running these commands: