Visit Our UNIX and Linux User Community


Apache


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Apache
# 1  
Old 07-27-2001
Apache

Sometimes the webserver doesnīt find a picture or there isīnt any. Then it shows a deufault picture. If i want to have diffrent pictures on diffrent catalogs if a picture doesnīt exist. The thing is that i want diffrent picture if itīs a button picture or if itīs a another picture that doesnīt exist.

Is that possible?

Regards

Henke

Last edited by henke; 07-27-2001 at 08:34 AM..
# 2  
Old 07-30-2001
I don't think you can do this easily. However, www.apache.org will have on-line docs (and search capabilities) to help better answer this.

Try:

http://www.apache.org/search.html
# 3  
Old 07-31-2001
well if an img is not avaliable you would get this gif the famous red X. apache_pb.gif


you could always swap out that gif for something you wanted in there in the first place. but that would be rather global.
# 4  
Old 07-31-2001
I would have thought this to be an issue related to the HTML in the page, rather than a web server one because, as has already been stated, it's not something which is perceived as part of it's function (as far as I know).

Making use of the ALT property in your IMG tag to specify an alternate image to display if the primary one is not available would work just fine. It is more granular in the sense it is based on each individual page, but if you're making use of static HTML templates or better still one of the server side scripting languages to dynamically generate content, it would be flexible and most of all simple Smilie

Just my thoughts on this.

Regards.
alwayslearningunix
# 5  
Old 07-31-2001
Umm... someone tell me if I'm wrong, but the ALT property of the IMG tag in HTML is for an image description, not an alternate image. I may be wrong, but I've been writing web pages for nearly 5 years and I've never heard of that implementation.
# 6  
Old 07-31-2001
My thoughts:


Someone earlier suggested using dynamic content generation. This would be the way to go, i.e. using PHP or JSP or GGI in a more DHTML environment.

If I was going to 'dive into this problem' I would also look at the HTML return codes and see if not having an IMG returns a
status code. There are many of these status codes. However,
I don't have much faith in this approach.

The action based on the status (return) codes could have file-level
granularity, but this would require a great deal of work for a large server and I would not advise it.

The dynamic HTML method using JSP, PHP, etc. would be my
first choice.
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #714
Difficulty: Medium
Machine learning is a well known method for mitigating the Von Neumann performance bottleneck
True or False?

9 More Discussions You Might Find Interesting

1. Red Hat

Process not running: /opt/java15/jdk/bin/java -classpath /opt/apache/apache-ant-1.7.0-mod/lib/ant-la

Have no idea on what the below error message is: Process not running: /opt/java15/jdk/bin/java -classpath /opt/apache/apache-ant-1.7.0-mod/lib/ant-launcher.jar org.apache.tools.ant.launch.Launcher -buildfile build.xml dist. Any help? (3 Replies)
Discussion started by: gull05
3 Replies

2. Web Development

Apache module development on apache 2.2

Hi, I'm new to developing modules for Apache. I understand the basics now and can develop something simple which allows a 'GET' request to happen, but what I want to do is actually 'POST' information to my site. I know the basic POST Request works and I can see that it is post by looking at... (2 Replies)
Discussion started by: fishman2001
2 Replies

3. UNIX for Dummies Questions & Answers

Apache help

Hi, I am new to unix and am trying to determine if apache is installed on my server. Is there a command to determine the running version or if it is even installed. I appreciate your help. Thanks, Eric (2 Replies)
Discussion started by: ejbrever
2 Replies

4. UNIX for Advanced & Expert Users

Apache

I am tring to configure Apache so that it displays the ip address of users browsing the web in the header. mod_header is installed on my apache as default. I tried including the following in httpd.conf file but no joy Header set remoteip %{REMOTE_ADDR} I have also tried Header add... (3 Replies)
Discussion started by: hassan2
3 Replies

5. UNIX for Dummies Questions & Answers

apache

on my webserver, and im sure many of you who also run one see this all the time, but the majority of my access log is filled with attempted exploits from computers compromised by some virus (NIMBDA?) and anyway i know this is harmless to an apache/linux webserver, but its annoying, anyway, on... (5 Replies)
Discussion started by: norsk hedensk
5 Replies

6. IP Networking

Apache

I want to have multiple domains to be configured in apache web server on redhat linux can i have that without DNS server being configured. What all i have to do for that.What all to configure ? please note that i need to access the site by its name not by IP . I want this in a LAN . I dont... (4 Replies)
Discussion started by: Vijayanand
4 Replies

7. IP Networking

Apache

I want to have multiple domains to be configured in apache web server on redhat linux can i have that without DNS server configured. What all i have to do for that.What all to configure ? And importantly i want the site be accessed by name rather IP address. Please help me ... (1 Reply)
Discussion started by: Vijayanand
1 Replies

8. IP Networking

Apache

I want to have multiple domains to be configured in apache web server on redhat linux Please help me Vijay (2 Replies)
Discussion started by: Vijayanand
2 Replies

9. UNIX for Dummies Questions & Answers

Apache!

How do you tell which apache version is currently running. the situation is that I got multiply httpd.conf files on a solaris 2.6 server and I need to tell which version is what? I have checked the httpd.conf but no joy Thanks in Advance (3 Replies)
Discussion started by: hassan2
3 Replies

Featured Tech Videos