Can't get folderbased sites to work on development server

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
5/5/2011 1:56:43 AM
Gravatar
Total Posts 137
When enough isn't

Can't get folderbased sites to work on development server

www.boostadventure.d

Hi,

We are about to develop some folderbased sites. I have succesfully created at second site like www.mydomain.dk/subfolder/, which I can call and get a complete new layout and menu structure different from my main site.

BUT now I have copied everything to my development server - both the ftp-files and the database. The main site runs well on the development server, but nothing happens calling the new second site.

I'm trying to call it like: http://localhost:xxxxx/mydomain.dk/subfolder/default.aspx and it returns a blank page with no error or anything.

In the administration settings on the development server I can see everything is ok regarding the new site. The subfoldername is there and the site is on the listing. I'm running the latest release 2.3.6.5 with MySQL.

Have you got any idea what is wrong?

Best regards
Lars
Denmark
www.boostcompany.dk
www.nysport.dk
www.boostadventure.dk

5/5/2011 6:49:12 AM
Gravatar
Total Posts 18439

Re: Can't get folderbased sites to work on development server

Hi Lars,

Folder sites only work if the main site is in the root, it can run where the root site is directly at localhost but not by localhost/mydomain.

You should create a new web site instead of using Default Web Site if you have other stuff running under Default Web Site. 

This article has some notes about how you can create a different web site and setup a hosts record for testing on your dev machine, so you could setup a site that runs locally as http://mycustomname instead of at http://localhost. Of course if you have nothing else running in the default web site on the dev server then you can just use the default web site.

If the dev machine is accessed remotely then you would need the same host file entries on the client machine to resolve to the dev machine ip address or else use a local DNS server to setup local network host names.

Hope it helps,

Joe

5/7/2011 4:12:58 AM
Gravatar
Total Posts 137
When enough isn't

Re: Can't get folderbased sites to work on development server

Thanks Joe,

After a bunch of unsuccesful tries it now works following your advices and the link you provided.

Now I can test multisite on the development server laugh.

Thanks a log - once again ...

Lars

www.nysport.dk
www.boostadventure.dk

 

You must sign in to post in the forums. This thread is closed to new posts.