Serve 1 000 000 Images From One Directory

Aug 13, 2008

I plan to build huge image gallery, using lighttpd to server these images. It would be easiest for me to have all these files (more than 1 000 000) in one directory? Is it ok?

I have no idea, if this can cause any problems. Should I part my files into several directories, does it make serving better/faster?

View 14 Replies


ADVERTISEMENT

Serve Images From A Different Location Based On IP

May 27, 2009

We have a major chunk of our traffic coming in from Asia and our servers are in the US. The latency is an issue which we have sorted out by ensuring we use Amazon's cloudfront CDN atleast for the static images.

Now while this is working rather well, we are now wanting to experiment and see if we could put up an additional image server in our country to serve IPs from that specific range.

In case the local image server goes down, the amazon cloudfront setup should be used. What are the best options for achieving this with the least amount of latency for the users?

View 8 Replies View Related

Plesk 12.x / Linux :: Making Subdomain Serve Files From Same Directory As Main Domain

Sep 28, 2014

I'm setting up a SAAS service which is built on top of Laravel. To put it simply the service itself knows whether its being called from a sub.example.com or just example.com and serves a correct response accordingly. So going to sub.example.com will use the same index.php file as example.com but the routes and controllers within the application will provide a different response. sub.example.com will show a tenant login page where as example.com will show a new tenant subscription page or something else.

So when someone new subscribes I add a new entry to the database with a subdomain name for them and when a request comes from that subdomain and they are logged in it will show them their information. Easy right.

There is a problem though with setting it up with Plesk. When I add a wildcard subdomain, it will look for /subdomains/sub/ for the files which is a bit problematic since I want it to serve the files from the same place as the domain example.com.

Is there a way to configure that so that regardless of the subdomain it will try and serve the exact same content as my main domain?

View 2 Replies View Related

Password Directory- No Images Showing On Webpages

Mar 29, 2007

I use bluehost's pagewizard. So i created the members.htm then moved it to a password protected directory.

I don't know how to get the pics to show up, i only know that the location of the images is in wizard images.

View 1 Replies View Related

IIS 5.1 Will Not Serve ASP Pages

Nov 14, 2008

I have a laptop which was recently reset to factory default and in the process I lost my ability to run and test my sites locally. So, I installed IIS (it is 5.1) and tested the default pages. So far I am having no luck getting anything but this:

-----------------------------
Server Application Error

The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance.
-----------------------------

I have searched and searched and searched and I am just out of ideas on what to search for. So far, this is what I have tried: ......

View 6 Replies View Related

Serve.com -- Anyone Has Experience

Dec 26, 2008

I have been working on a client's site that is hosted at www.serve.com. Anyone has an experience with them? I find them very lousy in support, support tickets take days to get response.. sometimes no response...

My task is to install drupal and customise it and .. but the clean-url feature doesnot work at their server .. as this conflicts with ther system settings. wow.

I am trying to find someone who has successfully installed Drupal with clean url enabled on their server.

View 7 Replies View Related

Apache :: Won't Serve Up CGI

Jan 25, 2013

I have installed Apache 2.0.64(Win32) and after repeated tries at adjusting the httpd.conf file, it still is refusing to serve up CGI. So far I have, following the Apache documentation, set my designated CGI directory with AddHandler directive, Option +ExecCGI enabled. Also have added the ScriptAlias directive as per instructions. These directives should work in conjuction with modules mod_alias and mod_cgi, both of which I have made sure were set to be loaded. The log files show no errors. There are no syntax errors being pushed out at start-up. The server stops and starts upon commands, with no problems,

I will post some excerpts from my httpd.conf in the pastebin as soon as it gets up & running--right now the authentication icon is missing.I have Active Perl 5.16 running on this machine, but my Apache download is the binary without SSL and with msi installer.

View 7 Replies View Related

How Fast Does Your Site Serve Pages

Mar 31, 2009

Apache includes a handy little program called ab

You can use this to measure how long it takes a web site to deliver a page n times

I wonder if people would like to state how fast their sites using shared web hosting can deliver simple pages, one in HTML and one in PHP (people can add other scripting languages if they wish.

Please don't post the site name or host name, just the results; I'd be interested in seeing what the range of results is, without getting into debates about hosting sites.

Here are two web pages

hello.html:

<html>
<body>
<h1>Hello, world</h1>
</body>
</html>

hello.php:

<html>
<body>
<?php

echo "<h1>Hello, php world</h1>";

?>
</body>
</html>

Here are the test commands; note I set the concurrency level to 1 ("-c 1"), which gives a more realistic measure of the user response time for low-traffic sites.

html: ab -k -c 1 -n 50 [url]
php: ab -k -c 1 -n 50 [url]

And here are my results:

************** html:
Server Software: Apache/1.3.37
Concurrency Level: 1
Time taken for tests: 6.196 seconds

Requests per second: 8.07 [#/sec] (mean)
Time per request: 123.929 [ms] (mean)
Time per request: 123.929 [ms] (mean, across all concurrent requests)
Transfer rate: 3.36 [Kbytes/sec] received

************** php:

Server Software: Apache/1.3.37
Concurrency Level: 1
Time taken for tests: 15.859 seconds

Requests per second: 3.15 [#/sec] (mean)
Time per request: 317.190 [ms] (mean)
Time per request: 317.190 [ms] (mean, across all concurrent requests)
Transfer rate: 0.93 [Kbytes/sec] received

View 4 Replies View Related

How Do Facebook, MySpace, Etc Serve So Many Users

Jan 24, 2008

when I type in www.facebook.com or www.myspace.com I'm taken to the main page but millions of people do the same thing every day.

I have basic understanding of DNS but only for single servers and small websites. I don't know how these organizations link of the necessary servers so that their website is available to all.

View 4 Replies View Related

Apache :: Unable To Serve More Requests

May 25, 2015

I have a little problem (on my Raspberry) with the maximum concurrent connections.When I open multiple tabs of a webpage which keeps persistent connections, apache is unable to serve more requests.Here is the (shortened) mod_info output (which also takes some time till there is a process kind enough to serve the request):

Code:
Server Version: Apache/2.4.10 (Raspbian) OpenSSL/1.0.1k
Server MPM: prefork
5 requests currently being processed, 9 idle workers

.___W____WWW_..W_...............................................
................................................................
......................

Srv PID Acc M CPU SS Req Conn Child Slot Client VHost Request

[Code] ....

When I understood it correctly, apache should spawn new processes (up to MaxRequestWorkers=150)

But there are idle???? processes, so it wont add new ones?

I dont think it has to do with mod_proxy (used for the webpage) since the mod_info output is affected as well...

View 1 Replies View Related

What Other Hosting Companies Serve The Same Niche As Alphared

Oct 14, 2008

namely, budget prices on servers. in particular unmetered bandwidth.

steadfast and hivelocity are the two I know of, but I'm wondering if I'm missing any.

View 8 Replies View Related

Apache :: Serve Domain Subfolder From 2 Different Server

Aug 31, 2013

I need to serve domain subfolder from different Apache 2 server.

1. Squid 3 reverse proxy is pointin to 80.241.222.151 for domain [URL] ....
2. Apache 2 server is on 80.241.222.151 with all files in the root folder so all requests are served from here
3. Now im creating new server at 80.241.222.149 with all files from [URL] ... transferred to the root
4. On Squid 3 server [URL] .... is still pointing to 80.241.222.151
5. But now i need to call [URL] .... from 80.241.222.149 in the root.

What is the example to do this? mod_proxy on Apache 2 server at 80.241.222.151?

View 1 Replies View Related

AddType In HTAccess Causes Apache To Serve Bad URLs

Nov 15, 2013

My website is on 1and1 shared hosting and to enable PHP I needed to put in my .htaccess the following

AddType x-mapp-php5 .php .html .htm .shtml

View 11 Replies View Related

Windows Serve Runable To Send Mail To Outside Email

Mar 5, 2008

I have a Windows server + Helm 4 + smartermail 4.

I found that my server today all users web scripts suddenly cannot send the contact form mails, membership registration mails to outside user. (all acripts code by asp.net)

I try to use many form mail scripts, all als

View 1 Replies View Related

Apache :: Serve XML File As Response For Appropriate Request When Web Service Is Down

May 30, 2013

I am using the latest version of Apache on an Windows XP machine

When my web service is down for maintenance, since Apache is will still be up and running, I would like for Apache to serve an xml file as a response for the appropriate request. I have three operations available, makePayment, calculateFee, and voidPayment.

Is it possible to have Apache determine what type of request is made for example if I have an xml error page for each operation; how will Apache know which xml file to serve based on the operation request from the client

To make it more clear: What is the best practice for modifying apache to know what request is being made in order to serve the appropriate xml file?

View 1 Replies View Related

CPanel Directory / Sub-Directory Protection (Linux Shared Hosting)

May 31, 2007

I have a situation like this:

There is a directory say, "Master" and inside, "Master" there is sub-directory, "Slave". A user who has access to, "Master" should be able to access, "Slave" automatically. However, a user who has access to, "Slave" should not have access to, "Master". Inside cPanel this type of protection is not possible.

View 3 Replies View Related

Ngix To Serve Static File Contents On CPanel Servers

Jun 17, 2009

how to setup Nginx webserver on a cpanel server to serve static contents,
say /images folder from every domains hosted on the server so that Apache's load will decrease?

View 12 Replies View Related

Apache :: Server Ran Out Of Threads To Serve Requests - ThreadsPerChild Settings

Mar 27, 2013

I'm running Apache 2.4.4 on Windows Server 2008 R2. It's already happened many times that Apache stopped responding to requests. The last entry in the error.log:

[Wed Mar 27 06:22:07.043600 2013] [mpm_winnt:notice] [pid 1736:tid 256] AH00354: Child: Starting 64 worker threads.
[Wed Mar 27 06:52:34.521200 2013] [mpm_winnt:error] [pid 1736:tid 1656] AH00326: Server ran out of threads to serve requests. Consider raising the ThreadsPerChild setting

View 1 Replies View Related

Httpd Directory Alias (public_html) Virtual Directory

Dec 11, 2008

How do I direct my httpd file to point to:

home/USER/public_html
instead of:
C:Users estetc...

I want to do this to make my test server just like the remote server.

View 5 Replies View Related

Move The Entire Contents Of A Directory Tree To Another Directory

Sep 18, 2008

I want to move the entire contents of a directory tree to another directory.

So for example we may have a directory with 15 directories inside, each directory contains files itself. I want to copy all the files from the directory tree into another directory located somewhere else one the file system. I want only the "files" to end up in the other directory and not the file structure too.

Im running CENTOS latest version.

View 4 Replies View Related

Mirror/Mirroring Site Hosting/aka: Impressed At Ability Of Cheap Hardware To Serve Static HTML

Nov 5, 2009

We recently began to mirror a large number of open source projects with a dedicated mirror server on our network and I was surprised not only with how popular the mirror server has become, is, but also of the ability of the hardware we're using to keep up with the load.

At an given time, the mirror seems to be pushing at least 50 Megabits of trafficthe server is also an IRC server (irc.igsobe.com) for customers and internal staff communications.

The hardware is a low end Dell Pentium 4 @ 2.66 GHZ server, running with 512MB of RAM and a 400 GB ATA hard drive. CentOS v5.3 is the operating system.

If you're interested, you can view the HTML logfile analysis here but that doesn't tell the full story as FTP users make up a good portion of the traffic. We've received over a quarter million hits in the first few days of November alone.

18:14:15 up 65 days, 9:04, 5 users, load average: 0.31, 0.69, 0.56

The only change that I made to the default configuration was lowering the maximum number of Apache servers to 128.

Just thought I'd share this information as I wouldn't have thought a server with such a small amount of RAM would be able to serve up so much data, even though we are talking strictly static HTML files.

I'll definitely keep this in mind when clients ask me for those "what type of dedicated server should I use for XXX" type discussions that are had all too often with clients.

View 0 Replies View Related

WGet Images

Jul 28, 2009

I'm trying to do is wget images, however, i'm not sure how to do it 100% right...

what ive got is a index.html page that has images(thmubs) that link to the full size images. how do i grab the full size images?

Example of links on the page:

<a href="images/*random numbers*.jpg" target="_blank"><img border=0 width=112 height=150 src="images/tn_*random numbers*.jpg" style="position:relative;left:3px;top:3px" /></a>

i tried

wget -A.jpg -r -l1 -np URLHERE

View 1 Replies View Related

Jailtime.org Xen Images

Mar 2, 2008

Has anyone here gotten any of the Xen images from jailtime.org to work on CentOS? I've figured out what the heck I'm doing since my last question [url], but they still won't boot. And the more I Google it, the more people I find asking the same questions.

It looks like they're depending on a bunch of non-standard images in their initrd, and, unless we have some of these unknown modules, the darned thing won't boot. Mine ends up failing like this:

Code:
NET: Registered protocol family 1
NET: Registered protocol family 17
Using IPI No-Shortcut mode
XENBUS: Device with no driver: device/vbd/2049
XENBUS: Device with no driver: device/vbd/2050
XENBUS: Device with no driver: device/vif/0
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
VFS: Cannot open root device "sda1" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
The xen.conf for this particular VM:

Code:
# This points ta real Dom0 kernel!
kernel = "/boot/vmlinuz-2.6.18-53.1.13.el5xen"
memory = "256"
name = "Ubuntu-Matt"
vif = [ 'mac=00:01:02:03:04:07, bridge=xenbr0, vifname=vif1.0' ]
# Set the disk...
disk = ['file:/home/matt/vms/ubuntu-7.04/ubuntu.7-04.img,sda1,w', 'file://home/matt/vms/ubuntu-7.04/ubuntu.swap,sda2,w']
root = "/dev/sda1 ro"
This is driving me bonkers... Has anyone gotten these to work? Would I be better off just installing from an ISO?

View 0 Replies View Related

Can't Seems To Upload Images

Sep 5, 2008

I have uploaded my site through FTP. Everything seems to be showing except the /images files.

Images in .gif and .jpg ain't showing up. The error I get is

"The image "image URL" cannot be displaying, because it contains error"

It's weird because the image is uploaded on the ftp in images folder but for some weird reason it's not showing up.

View 6 Replies View Related

Full Size Images In DH

Jun 18, 2009

how to have full size images in my DH (dreamhost) gallery2?

View 2 Replies View Related

Dose More Images Mean More RAM Usage

Nov 21, 2008

Dose more images mean more RAM usage?

Do images take a heavy load on server RAM?

View 5 Replies View Related

Do Not Allow To Download Images IIS6

Mar 1, 2008

I have virtual folder in IIS6 which has asp file as default and several jpg files. How to prevent JPG files download from server? I want to let execute asp file only and do not let users download jpg files.

View 0 Replies View Related

How To Hotlink Images In Forum

Dec 4, 2008

How to hotlink images in forum?

View 2 Replies View Related

Preventing Hotlinking Of Images

Sep 15, 2007

The images I am trying to block are on page generated by a simple PHP script on my server. The offender has replicated what I am doing with ASP on their server. They are hotlinking to my images for the resulting page. They left my website's name on them, so they must think that giving credit is enough.

I'm going to be contacting them to stop but I also want to see if there is a way for me to prevent it from happening in the first place.

I tried mod_rewrite...

Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^[url].*$ [NC]
RewriteRule .(gif|jpg)$ - [F]

I know mod_rewrite works on my server because I've been using it for some other things.

However, whenever I enable the above code (add it to the directives and restart apache - have also tried just putting it in a .htaccess file in the appropriate directory), I end up with images still being allowed on my domain and the other domain I'm trying to stop from using my images. Do you think it could have to do with an absent referrer? I read that the code doesn't work if the referrer is blank. What else would cause this not to work? Obviously the domain would have to be correct, but it doesn't block from my domain OR the offending domain.

I tried another method:

Code:
<FilesMatch ".(gif¦jpg¦png)$">
SetEnvIfNoCase Referer ^$ allow_image
SetEnvIfNoCase Referer ^[url] allow_image
Order Deny,Allow
Deny from all
Allow from env=allow_image
</FilesMatch>

This one blocked images to the offending domain, but it also blocked mine!

View 3 Replies View Related

Images Dissapearing Randomly

May 28, 2007

I am creating a web application, nothing spectacular just something to display content.

After completing a long night of coding, I uploaded my files to my server and checked to make sure everything was functioning correctly. Everything seemed fine so I went to bed.

The next morning, to my surprise, all my images had dissapeared! Well not all of them, just the ones being displayed through the PHP script. (coincidentally, these images where all in the same directory...)

Of course the first thought that went through my mind was "scripting error". Which surprised me, since everything worked perfectly the night before. I checked and double checked everything, and I couldn't find anything wrong. I checked the permissions on the directory holding the images and they appeared correct (755). So, to locate the problem I decided to strip out all the variables and create a test page that had only the SQL query, and a print to output the <img> code. Still nothing! So I decided to just go the HTML route and create a test file that held only the <img> code, no PHP involved... nothing.

The images are on the server. I double checked... if you right click > view image, it shows up. Then if you go back to the "test" page and refresh the image is there... however, it does not appear when you first load the page, or it appears and then immediately dissapears.

I contacted my host about the issue, and their first response said:

Quote:

Dear customer,
The images are there if you login through plesk control panel and go to
File Manager under your domain you can find the pictures and see
them.But some of them are not opening under your website.
Best Regards

Honestly... are you kidding me? Reiterating my question doesn't constitute as an answer. And they call themselves "engineers"...

Seeing as it appears to only be affecting one directory (and possibly only JPG images...? Have a look at the test pages above), I believe it might be a permissions issue.

View 0 Replies View Related







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