Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    bwd
    bwd is offline
    Junior Member
    Join Date
    Apr 2012
    Posts
    14
    Member #
    31442
    Hi, I have a website which is stored on a folder off my main website, as I am using a client's (Apache) server to host my sites, rather than paying for an entire server when my needs are relatively small.
    You can view the site here:

    http://www.mywebsite.com/secondsite/

    When you go to the domain name of the site, it doesn't display the images,

    http://www.secondsite.co.uk/

    - except it does display the header logo from the mywebsite.com site! I thought maybe the redirect is somehow pointing it to slightly the wrong place, up a directory? Thus it's finding the images folder for mywebsite.com, not www.mywebsite.com/secondsite/images/

    I know that I set up the redirect on the server a couple of years ago, but I can't find any mention of 'secondsite.co.uk' in the
    www.mywebsite.com.conf file.
    I have been looking in
    etc/httpd/conf.d/

    which is where I have created all the .conf files for the six or seven sites I created on this server.
    Is there anywhere else I could have set up the .conf file? There are no redirects in the
    etc/httpd/conf/httpd.conf file, no 'VirtualHost' settings, but somewhere on the server there must be a redirect, because the domain name definitely points to the IP address that www.mywebsite.com is at.

  2.  

  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    Stupid question: why not use a reseller account? Pretty much every host offers one, they all come with at least a control panel of some sort to make life easier, it's under your full control (assuming you don't do something boneheaded like hosting warez or porn) and you can let the host deal with the issues like this so that you can move on.

    Here's one from a hosting company that actually knows what it's doing that will cost you 8 bucks a month. It's not labelled as a reseller account, but you can do that with it.

    http://www.sectorlink.com/web-hosting.html

    I know it wasn't really the answer you were expecting and it may not be what you want to hear right at the moment, but in this case, it's probably your best answer.
    bwd likes this.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  4. #3
    bwd
    bwd is offline
    Junior Member
    Join Date
    Apr 2012
    Posts
    14
    Member #
    31442
    Well, this is a problem of my own making, as far as I can tell, I wouldn't expect a host to deal with it, and my client lets me use space on his server for free. I don't actually understand how your solution would fix my problem.
    I must have a redirect on the server somewhere, otherwise secondsite.co.uk wouldn't be pointing at mywebsite.com/secondsite/, and once I find the redirect, I can fix the problem.
    Do you know how to search within files for a word, on an Apache server? All I need to do is search for 'secondsite.co.uk' and that will presumably lead me to the errant .conf file.

  5. #4
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    It would help fix your problem because it wouldn't be your problem anymore...it's on the host.

    Having said that, I don't know of a way on an Apache server, but you can get a tool such as Notepad++ and do a global find on the files within a folder and subfolders. Find the one causing the problem, make the change, upload it to your server, and you'll either be done, have the same problem (which means the .conf file wasn't it), or have a new problem.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  6. #5
    bwd
    bwd is offline
    Junior Member
    Join Date
    Apr 2012
    Posts
    14
    Member #
    31442
    I've found the redirect, it was in an .htaccess file in the /public_html folder of /home/mywebsite
    I'm not sure how I missed it before, I'm sure that was the first place I searched. The redirect still doesn't work, and I don't want it in an .htaccess file anyway, as I've found out that it should be in a .conf file, preferably the httpd.conf file.

    Do you know how to set it up?

    So far I've tried this, but it doesn't work:

    <VirtualHost *:80>
    ServerName www.secondsite.co.uk
    ServerAlias secondsite.co.uk *.secondsite.co.uk
    DocumentRoot /home/mywebsite/secondsite
    </VirtualHost>


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 07:20 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com