Portal Home > Knowledgebase > Articles Database > parent path ?
parent path ?
Posted by map007, 10-03-2008, 12:49 AM |
Hi,
I have a domain abc.com and i have add addon domain name.com in the abc.com.Now i have create subdomain under addon domain name.com as support.
I have some company images inside /home/abc/public_html/name.com/images
when i open site name.com/images it runs .now i add index.html page inside /home/abc/public_html/name.com/support/index.html and img src from
/home/abc/public_html/name.com/images
now when i open name.com/support my company images show perfectly and when i open support.name.com that time images are not showing.
Now what can i do.
I have sat ../images/logo.png parent path in index.html page.
Please help me.
Linux5+apache
Thank you.
|
Posted by david510, 10-03-2008, 03:15 AM |
Add the following line to the virtualhost entry of the domain inside the httpd.conf file and restart apache. See how it goes.
UseCanonicalName Off
|
Posted by mod_webhosting, 10-03-2008, 03:18 AM |
In your HTML set absolute image path.
Instead of use
|
Posted by map007, 10-03-2008, 05:35 AM |
I have checked by adding this line in http.conf but its now working so can please tell me any other way to do this.
|
Posted by steveks, 10-03-2008, 05:38 AM |
Can you explain clearly? Do you mean it works and you want another method to fix it ?
|
Posted by map007, 10-03-2008, 06:25 AM |
HI,
It didn't work can you give me other solutions.
Thank you .
|
Posted by steveks, 10-03-2008, 06:41 AM |
I am not sure... But, i guess its due to mod_sec or register_globals or allow_url_fopen.
So, Just do the following and see it again.
1) Add the following in .htaccess file
SecFilterEngine Off
SecFilterCheckURLEncoding Off
SecFilterScanPOST Off
Now, see the page. If the images are still not loading then do as below.
php -i | grep php.ini
Configuration File (php.ini) Path => /etc/php.ini
Inside the above file try to change the following variables to on and restart httpd.
This is just a try. If you have luck, it will fix lol
[root@sak-co tmp]# grep register_globals /etc/php.ini
register_globals = On
[root@sak-co tmp]# grep allow_url /etc/php.ini
allow_url_fopen = On
So, after changing the both, if it works fine. Then copy that php.ini file to your local public_html and then revert back in main php.ini as previous.
|
Posted by map007, 10-03-2008, 07:07 AM |
HI,
Thanks steveks but still it didn't work.
|
Posted by steveks, 10-03-2008, 07:38 AM |
Can you check in httpd error logs ? Any indication about it ?
|
Posted by map007, 10-03-2008, 09:13 AM |
HI,
Exact error "Invalid command 'SecFilterEngine', perhaps misspelled or defined by a module not included in the server configuration"
Thanks.
|
Add to Favourites Print this Article
Also Read
Rating Sysetm (Views: 667)
PHP 5 xor bug (Views: 685)