Server :: Displaying An Alternate WebPage When Apache Is Down?
Sep 11, 2010
Code:
# service httpd stop
Stopping httpd: [ OK ]
And now we access the web site by typing the URL: http://192.168.56.10/ and the following message, as expected, is displayed:
Code:
This webpage is not available. The webpage at http://192.168.56.10/ might be temporarily down or it may have moved permanently to a new web address. But is there any way to display a different web page or message when we have brought down the Apache Server for maintenance so that a visitor on our web site would not think that we are gone with our bags and baggages...?
I'm using the "Beginning PHP5, Apache, MySQL Web Development" book from WROX to teach myself these processes. I'm a retired programmer and trying to keep my brain active. I've been able to get through most of the process and get things to work. But getting a picture upload and then display it is killing me. The picture is moved from the initial directory and placed in the destination but will not show on the web page, I get a place holder and all the information about the picture, but no pic. The MySQL is processing all the database stuff .I haven't a clue what is not working, Firefox, Apache or what. I'm running Fedora 14.
i have already configured a domain in my server. now i have configured multiple local ip addresses,can i configure a domain for each local ip address. is it possible. if possible how can i access the web page through apache.Because already i am accessing the web page for a pre-configured domain from the path /var/www. if i able to create new domain.From where the apache fetches that index.html file, when requested through browser.
I have a png file which I put into a user's directory: /~user/file.png This displays OK. When placed in the user's images directory: /~user/images/file.png the file does not display. If I put the file in the global images directory: /images/file.png the file displays OK. Finally if I change the format of the file to a jpg and save it in the user's images directory: /~user/images/file.jpg the file displays OK.
When I look at the Apache access_log and error_log files, there is not even an entry if the png image file is accessed from the user's images directory.
I am now using CentOS5 as the server providing Apache services. I have managed to setup the web page under /home/user1/public_html, now I wish to change the default web page of our server to /home/user1/public_html. i tried to modify httpd.conf, in which i changed the "/var/www/" to the above user directory, but didnot work. Please kindly suggest.
I tried creating a virtual server in apache and it got created successfully. (I also added a zone in dns for that domain successfully) However, when I try opening that domain in my browser, I see a popup window which asks me what to do with "default" which is a php file type.
I dont see the index.php which should actually open. What do I do to make the php files display correctly?
I have set up a linux box running slackware 12.0, along with Apache 2.2.4, on my LAN I have a couple of computers. I want to force them to a webpage under document root, the webpage will be a agreement webpage. Is this possible to do with Apache? This will not be real domain, so my guess it that I would have to tell my DNS server to resolve the ip address to the hostname of my slackware box.
I have tried setting apache up on port 8000, because my ISP blocks port 80.
When I try to listen on just port 8000, I can never connect, internally or externally. When I try to listen on both 8000 and 80, my internal computers will drop the 8000 from the url and connect on 80, and external computers try to do the same thing, but can't get through on port 80.
I know my router is set up correctly, I have 80, 8000, and 8888 all being forwarded, I have confirmed with [URL] that 80 is blocked, but 8000 and 8888 are open. I am able to connect to gnump3d through port 8888 internally and externally, but not apache2 on port 8000.
netstat -tnap confirms that apache is running and listening on ports 80 and 8000 to all users.
New apache install, php files are downloading rather than displaying, does anyone know whats causing this. When I compiled php with apxs it automatically added this line:
Code:
LoadModule php5_module modules/libphp5.so
I restarted apache, and also try adding this line:
I am trying to solve a problem where Apache stats aren't displaying correctly in Munin. I've ran through quite a bit of checks and tests regarding Munin setup, but I think my issue is related to Apache, but my skill set there is lacking.
first, system info: monitored server: CentOS 5.3 2.6.18-128.1.1.el5
I removed CYGWIN and installed a Ubuntu 10.10 64bit virtual box and now I have it running, but I still can't get it to run my CGI script from my webpage that i have on Ubuntu platform. I was wondering if there was a certain way that I need to install apache or whatever to get it running correctly.
i configured ftp in my server.i just want to access the web page created in server through ftp.ya i can able to access. but the problem is ,it,s showing all the files and folders of the server like Desktop,Documents etc.....
But its just need to show only the site files such as index.html and its sub folders.
i think the problem is because of logging in to the server through ftp as normal user,which is created in server. so i think if we login as ftp user we can able to access only the website files.
I have an NFS mount on the NIS client that I want to use as the home directory for all NIS users logging in, but I also want to retain the original /home directory for system users and root on the same client.The NFS mount is /nishome, and when I defined the NIS user on the the NIS server, I identified this mountpoint as the NIS users' home directory. This same NFS mount is mounted on the NIS server as well.
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?
I'm kinda new to all of this so I believe there's a simple solution for what I need I just don't know how it's done.
So I've configured a vsftpd, ftp server and enabled the anonymous user, therefore when I do
Code: ftp://my_location.com
a directory like view is displayed in my web browser, corresponding to /srv/ftp where the files for the anonymous account are kept. Now I've made a little web page and I've copied it there, and can be executed running main.html so the address to access the web page would be
Code: ftp://my_location.com/main.html
My problem is that I don't want anybody to have the possibility to see the directory like display so I'm wondering if when someone does ftp://my_location.com can't this be redirected so it will do ftp://my_location.com/main.html instead?, making the display of files and directories impossible from the ftp://my_location.com
To Protect Web Page Directories With Passwords i have done the below configuration but the problem is when i click the linux it is not asking username and password,
Created new account for logging into web interface:
htpasswd -c /etc/httpd/conf/.htpasswd travelkarega Created a file name .htaccess in /opt/apps/deploy/websites/travelkarega/html/ vi .htaccess AuthUserFile /etc/httpd/conf/.htpasswd AuthName "Please enter password" AuthType Basic <Limit GET POST> require user travelkarega </Limit>
it was possible to run a script (something.sh) on a server when a button on a webpage is pressed. I already have Apache set up and I will set up php if I have to.
I have configured Squid proxy on RHEL 5. Now I want all squid clients to use default website which is set by Squid Proxy Server. So whenever user opens their browser they will visit same website automatically.
I want to put some files in a directory that other people will be able to access via a web browser, so that they do not need to log in or have an account.
I have installed Samba and the Guest only share i've created works, I can connect and view, edit, create, delete files fine... However...I can NOT see or create subfolders.Google searches and playing around for six odd hours and no success...
----------smb.conf-------------- # This is the main Samba configuration file. You should read the # smb.conf(5) manual page in order to understand the options listed
We have a Centos 5.4 system with V4L installed. xawtv displays the web cam's output fine, but I need to find a way to embed live video from the web cam in a web page (Apache is also installed). I want to play the video in such a way that the viewers do NOT need any special software other than a standard web browser (Firefox, IE, etc.)
I wish to download a webpage, which is secured by username and password, using WGET. The thing is there are many forms on that page and I dont know how to tell WGET which one should it send (by POST method) the parameters. I have solved it till this so far: wget --post-data="predmet=xxx" --http-user="yyy" --http-password="zzz" [URL] It gets through the authentication but it will not submit the form.
I have an Ubuntu 9.10 server set up at my house. I have Apache2 and PHP5 installed on it. Every time I go to the server on a web page and try to load the PHP index page it downloads instead of displaying.
I have virtual servers set up and have the files stored at /home/cusinndzl. If anyone needs to take a look I can let them into the webmin panel.
I have a weird problem I am experiencing with my Apache 2.2 w/ ISPConfig 3 running on Debian 5.0.4. It is not a website html issue.***PROBLEM***Images are not beind displayed,javascripts are not being run, however when the site is viewed from a local source as a file(like on a USB Flash Drive) they work fine and display properly.Here is the website URL:I have removed a lot of the images and content or changed it in order to troubleshoot it myself, so the site is stripped pretty bare. There is supposed to be a logo inside the "header" <div>, which is set in the CSS file "style.css". There are supposed to be images for navigation, but they show up as red "x"'s. I removed the javascript elements and just trying to work with barebone html/css and can't seem to get it to display properly.
How to device-mapper multipathing in conjunction with fdisk. I am more of a solaris expert and now trying to grasp linux (red hat). I have a server that I plan to cluster (future assignment) which is attached to a Netapp SAN via emulex LPe11002 HBA. I have 8 paths to the LUN I created and I can see the multipath device (/dev/mapper/mpath1). Below is my multipath.conf file:
[Code]....
Question 1: When I look at fdisk -l, I can see all 8 paths to the same LUN. Although I partition /dev/mapper/mpath1, I can still see that 7 of the 8 still say "Disk /dev/sdX doesn't contain a valid partition table". I would think that all 8 would have this removed. I execute '/usr/sbin/lpfc/lun_scan all' and it doesn't work. I am looking to clean this up...what should I do? It seems weird to have to do it to all 8 paths!
Question 2: Why does my alias, 'db' not show up under /dev/mappers?
Question 3: Is there a way for fdisk -l to display one lun rather than displaying all 8 paths to the lun?
What is the standard procedure (commands) people execute when adding a new lun to a server with multipathing so it is nice and clean?
I have a Centos 5.5 system with 2* 250 gig sata physical drives, sda and sdb. Each drive has a linux raid boot partition and a Linux raid LVM partition. Both pairs of partitions are set up with raid 1 mirroring. I want to add more data capacity - and I propose to add a second pair of physical drives - this time 1.5 terabyte drives presumably sdc and sdd. I assume I can just plug in the new hardware - reboot the system and set up the new partitions, raid arrays and LVMs on the live system. My first question:
1) Is there any danger - that adding these drives to arbitrary sata ports on the motherboard will cause the re-enumeration of the "sdx" series in such a way that the system will get confused about where to find the existing raid components and/or the boot or root file-systems? If anyone can point me to a tutorial on how the enumeration of the "sdx" sequence works and how the system finds the raid arrays and root file-system at boot time
2) I intend to use the majority of the new raid array as an LVM "Data Volume" to isolate "data" from "system" files for backup and maintenance purposes. Is there any merit in creating "alternate" boot partitions and "alternate" root file-systems on the new drives so that the system can be backed up there periodically? The intent here is to boot from the newer partition in the event of a corruption or other failure of the current boot or root file-system. If this is a good idea - how would the system know where to find the root file-system if the original one gets corrupted. i.e. At boot time - how does the system know what root file-system to use and where to find it?
3) If I create new LVM /raid partitions on the new drives - should the new LVM be part of the same "volgroup" - or would it be better to make it a separate "volgroup"? What are the issues to consider in making that decision?
I am installing Big Brother on a CentOS 5.2 running the default Apache 2.2.3. When I try to access any web page I get the following error: Forbidden You don't have permission to access /bb/ on this server. Apache/2.2.3 (CentOS) Server at fmsubbnix Port 80 So far I have:
1) Set the Directory options to FollowSymLinks 2) Verified all directory and file permissions are at 755 3) Set permissions temporarily to 777 and received same error so I am assuming the issue is in a config file somewhere 4) in hhtpd.conf verified <Files ~ "^.ht"> is correct 5) verified the "default" directory is correct (/var/www/html)
I have read and tried several ideas in posts listed on the web but to no avail and am at a loss as to what to look for next..