logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Issue with sub-folders as separate websites?
Author
phonnold



Joined: 10 Jul 2015
Posts: 3
Location: USA, Colorado

PostPosted: Fri 10 Jul '15 22:48    Post subject: Issue with sub-folders as separate websites? Reply with quote

Hello all,

I have used Apache for a bit but haven't really gotten into any of its "advanced" features or options, so sorry if this questions turns out to be basic, but I am a bit lost here.

OS is Ubuntu
Apache 2.2
PHP 5.3.10

I am working on an Apache setup that was not done by me and is setup to read the URL in the following way.

www.domain.com/news-events/
this would get me the news-events page

www.domain.com/news-events/random-post/
This would get me the random-post page under news-events

I want to setup a new, unrelated site, at
www.domain.com/scrm/
This is a separate software package that will take care of a different function than the main site.

When I access this I am getting a 404 page not found error. I understand why this is happening, but I am not sure how to get around this. I would like www.domain.com to ignore the /scrm/ directory and let the new software in that directory handle the URL request and not the main software at www.domain.com. Is there anything I can do to get this working that doesn't require a total rebuild and restructure of this setup? As that I can't do.

Not sure if this impacts any of this but it also seems that Virtual Directory Support is disabled. My first thought was a virtual host, but I think that this means I can't do that.

Thanks for any help on this.

Philip
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Wed 15 Jul '15 14:16    Post subject: Reply with quote

Did you put there any index file in that directory?
Back to top
phonnold



Joined: 10 Jul 2015
Posts: 3
Location: USA, Colorado

PostPosted: Wed 15 Jul '15 17:03    Post subject: Reply with quote

Yes, there is a default webpage in that folder. The web software in the new directory works fine on my local testing server. I am just trying to understand what has been done with the public server as I wasn't the one that set it up, and don't understand what was done to it.

Something I forgot to mention is that there is already a folder on this server setup the way I want to use this new one. /sub1 is seen as a separate site and is ignored by the main software in the root folder. I just don't see how they did this so that I can create /sub2.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Wed 15 Jul '15 18:16    Post subject: Reply with quote

What are the mod rewrite settings for that vhost?
Back to top
phonnold



Joined: 10 Jul 2015
Posts: 3
Location: USA, Colorado

PostPosted: Wed 15 Jul '15 18:51    Post subject: Reply with quote

James Bond,

That was it. There is rewrite rules on for the main site and the one sub-folder that was a separate site had rewrite rules turned off. I just put a new .htaccess into my new sub-folder that did the same and that took care of the problem I was dealing with. Hadn't thought about that at all.

Thanks,

Philip
Back to top


Reply to topic   Topic: Issue with sub-folders as separate websites? View previous topic :: View next topic
Post new topic   Forum Index -> Apache