It sounds like Drupal is storing absolute URL's. First thing's first, clear Drupal's cache! If that doesn't fix it, then turn on CSS and JS aggregation. If you do that and CSS and JS load, then you got something rewriting image URL's in your Drupal (you don't have the CDN module installed by chance, do you?). Also where are the images coming from? Are they inside of nodes? If so, then there's a chance the images are inserted into the body field using absolute URL's, which some modules do and/or have settings for. If that's the case, then the fix is either doing a MySQL search and replace on the affected fields, or a custom filter to preg_replace the URLs.
Jamie Holly http://hollyit.net
On 11/17/2014 1:37 PM, Néstor wrote:
HI,
I have a site working on rhel5.11 and I need to transfer it to ubuntu but images point to www.mysite.com:81/ http://www.mysite.com:81/sites/default/files/images/ instead of www.mysite.com:81/ http://www.mysite.com:81/sdcwa/sites/default/files/images
I am new to Ubuntu, I just do not know what else to do. I tried following certain tutorials but to no effect. I was able to install drupal6 and run it but I am not able to run my drupal 6 site sdcwa.
HELP HELP HELP..........
I have tried setting it on several files but no luck setting.php # $base_url = 'http://www.example.com'; // NO trailing slash! $base_url = 'http://www.mysite.com:81/sdcwa'; // NO trailing slash!
on my.htaccess RewriteBase /sdcwa
# Rewrite URLs of the form 'x' to the form 'index.php?q=x'. RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} ^/sdcwa/ RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*)$ /sdcwa/index.php?q=$1 [L,QSA]
</IfModule>
and 000-default.conf <VirtualHost *:81> # Alias /sdcwa /var/www/html/sdcwa ServerAdminroot@mysite.com mailto:ServerAdminroot@mysite.com DocumentRoot /var/www/html/sdcwa <Directory /var/www/html/sdcwa> Options +FollowSymLinks AllowOverride All Order allow,deny Require all granted Allow from All
</Directory> </VirtualHost>
THANKS!!!
Nestor