SunQuest
 
           Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old September 6th, 2005, 02:41 PM
larry2342 larry2342 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Posts: 4 larry2342 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 51 m 19 sec
Reputation Power: 0
not able to serve pictures help

Hi

I am certain this has been covered before, but i could not find a post that fit exaclty my situation.

I have apache 2.0.54 up and running just fine on windows box and linux.

I Decided to use the AliasMatch you can configure in the httpd.conf file to serve up a simple page that basically says hello world.

The page is called index.html. I am not using PHP or anything like that just trying to serve stright up a basic html with a small picture in it a .gif.

In the body of the html page I have a simple hello world and then underneath an img tag to show a small picture .gif under the word hello world. I have the tag correct:

<img src="somepic">

The picture is in the same directory as the html page is in.

But when i start apache up again and type in url it goes to the page and shows my hello world at top, but underneath the spot for picture is the broken icon.

Any one know what is going on?

Do i have to tell apache somehow to show pics when requested by html page?

Or something else?

Any help appreciated.

Reply With Quote
  #2  
Old September 7th, 2005, 08:16 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 4 m 48 sec
Reputation Power: 8
I realize this is a stupid/simple question... but
Do you have the file extension on the SRC attribute?

<img src="somepic.gif">

I just want to get the easy HTML questions out of the way before we consider it being a problem with your server.

Reply With Quote
  #3  
Old September 14th, 2005, 02:45 PM
larry2342 larry2342 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Posts: 4 larry2342 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 51 m 19 sec
Reputation Power: 0
thanks for reply i found solution.

I just had to use correct syntax in the httpd.conf file.

AliasMatch ^/someapp/myapp(.*) /ApacheGroup/Apache2/www$1

and it poped up with my pic.


Reply With Quote
  #4  
Old September 15th, 2005, 08:55 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 4 m 48 sec
Reputation Power: 8
Good, the answer wasn't as simple as "put the extension on"... =)

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > not able to serve pictures help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway