|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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. |
|
#2
|
||||
|
||||
|
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. |
|
#3
|
|||
|
|||
|
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. ![]() |
|
#4
|
||||
|
||||
|
Good, the answer wasn't as simple as "put the extension on"... =)
|
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Server Configuration > not able to serve pictures help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|