Viewing 9 replies - 16 through 24 (of 24 total)
  • Thread Starter ethilanka

    (@ethilanka)

    no.. this is a vps…! I have installed it and configured…. i just want to know what exactly we have to do in the httpd.conf

    In every document / forum using a sample path or a code… so that im unable to figure out the sample or the original code out of it… if you have the exact step by step guide that has the ability to make sub domain create a network for wordpress it will be a help..

    Cheers..!

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    There is the problem. I do not have a step-by-step guide to tell you how to set up your VPS to handle .htaccess correctly because there is no one way for a server to be setup and this no one way for it to be configured.

    Are you paying someone to host your VPS server? Do they offer support? Take them up on it.

    I have a VPS too. The whole reason I pay them as much as I do is that when I don’t know how to do something, they can do it for me. ??

    Thread Starter ethilanka

    (@ethilanka)

    My VPS provider not supporting for me since it is a unmanaged service.

    I have to find a solution by my self… Could you please someone try to help me to sort out this….?? Only problem im facing is.. my subdomain images are not showing on the given path and it is missing some parts of it..

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    My VPS provider not supporting for me since it is a unmanaged service.

    Yeah… see you need more help then. What you need to do is experiment with how to set up allowoverride on your virtual host. You could TRY this:

    <VirtualHost *:80>
    ServerAlias *.lkblogspot.com
    #    ServerAdmin [email protected]
    #    DocumentRoot /www/docs/dummy-host.example.com
    #    ServerName dummy-host.example.com
    #    ErrorLog logs/dummy-host.example.com-error_log
    #    CustomLog logs/dummy-host.example.com-access_log common
    
    <Directory />
        Options FollowSymLinks
        AllowOverride Fileinfo Options
    </Directory>
    </VirtualHost>

    But you’re going to have to study up on Apache.

    And this is why I pay extra for managed VPS. I know I don’t know everything.

    Thread Starter ethilanka

    (@ethilanka)

    no luck yet…. I have tried as you mention….

    As per to my observation…! when we request the image from sub-domain blog it doesn’t give the exact path / URL it just shows the broken path… i hope this will be a fault with the wordpress settings or config files… as you can see many of the ppl are frequently getting the issue….! cant we escalate this to a developer who involved with this project…??

    So that everyone can get the answer in a single thread and fix this issue and be able to publish it so that ppl will not be confused and they won’t open multiple threads for single issue…

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    You’re missunderatanding how it works.

    It’s SUPPOSED to point to /files/YYYY/MM/DD/Imagename.jpg — We WANT that to happen. It’s NOT broken.

    Remember when I said this WAY in my first post?

    WordPress smartly redirects the /files/ location to blogs.dir/#/files (where # is your site #).

    Trust me. It’s correct. It’s working.

    you point to https://name.domain.com/files/2011/05/image.jpg

    WP translates that to https://name.domain.com/wp-includes/ms-files.php?file=2011/05/image.jpg (Remember? You tested that AND IT WORKED!!!)

    And THAT gets finally parsed as https://domain.com/wp-content/uploads/2011/05/image.jpg

    That whole process depends on a couple things, but most important is your .htaccess being able to do that middle step. YOURS fails. It is failing to parse this:

    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

    That’s why I had you test the URL with that format in there. And since THAT was successful, I know it’s not WordPress breaking (because it can parse the image from that location), but your .htaccess, which means the .htaccess isn’t handling redirects as well as it could. Which means it’s the configuration of the server, which is handled in the httpd.conf file.

    And at this point, I’ve given you the advice and directions I have. So you can either research it, google ‘httpd.conf wordpress multisite’, hire someone, or wait and see if someone better with httpd.conf rolls in.

    (And posting in other peoples topics, when (1) you have your own and (2) You aren’t having the EXACT same issue pisses people off and makes it MUCH harder to help anyone. Don’t do it.)

    Login to your VPS, then navigate to the folder that contains your wordpress files. Type pwd to display the current working directory.

    Then where you see /var/www/vhosts/wordpress in the documentation replace with what you saw above.

    . i hope this will be a fault with the wordpress settings or config files… as you can see many of the ppl are frequently getting the issue….! cant we escalate this to a developer who involved with this project…??

    It is 100% a server side issue. A developer will not be able to tell you anything different than ipstenu already has. this isn’t even multisite specific, as any program using htaccess files, and those getting ignored by the server, will need the same “fix”.

    I am extremely familiar with your issues, as I’ve had it myself, and have had to learn it myself on my own VPS and then dedicated box.

    Start reading Apache docs.

    Thread Starter ethilanka

    (@ethilanka)

    Thanks everybody…. after a long period of struggling with wordpress and with apache…. It worked for me….!

    Note my work out on this…!

    in httpd.conf i have edited the virtualhost as follows.

    <VirtualHost *:80>
    ServerAlias *.domainname.com
    
    <Directory /var/www/html>
        Options FollowSymLinks
        AllowOverride Fileinfo Options
    </Directory>
    </VirtualHost>

    again thanks for Ipstenu – who helps me to find the way
    dunxd – who gave me a clue
    Andrea_r – who enlighten my thread

    Cheers..!

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘Not found error for images in subdomain’ is closed to new replies.