Welcome Guest, Not a member yet? Register   Sign In
Wanting to host site on local network...plz help
#1

[eluser]abar12003[/eluser]
Hi,

I am using CI after two year break....still everythng z going well...i hv developed a blog for local network and wanting it accessible on my local network....

My directory structure for controller is:
C:/wamp/www/CodeIgniter_1.5.4/system/application/merablog/controllers/MyBlog/blog

Other settings are:

$config['base_url']= "http://localhost/CodeIgniter_1.5.4/index.php/MyBlog/";

$config['index_page'] = "";

$application_folder = "application/merablog";

With all the above settings, I can access my blog on local network by typing:

"http://localhost/CodeIgniter_1.5.4/index.php/MyBlog/blog" (works fine with this)

Now, My Problem is:

I want to make it accessible to other users by just typing "http://my ip address" on the browser (plz gv the detailed steps for htaccess or so...ie where to put & all... as i hv least idea abt htaccess)

Also m planning to host another site by the same way.....plz advice on dir stru also,if reqd...

plz help!!!

Regards,
Amit
#2

[eluser]Mareshal[/eluser]
$config[‘base_url’]= “http://YOUR_IP/CodeIgniter_1.5.4/";

And use c from bitbucket
#3

[eluser]abar12003[/eluser]
@Mareshal: sorry bt.....'bitbucket'?
Also, "base_url" is ok i hv tried dis & working....bt i want the user to jst gv my ip only....ie http://ip
#4

[eluser]Mareshal[/eluser]
You're using CI 1.5.4, very old version, many bugs. Use this 2.0.0 prerelease: http://www.bitbucket.org/ellislab/codeigniter/ or latest stable version 1.7.2

If you want your site to be accessible only with IP, put CI in root folder: c:\wamp\www
#5

[eluser]abar12003[/eluser]
@Mareshal: Thnx for the suggestion....
i dont think this will help me out coz my CI is already in root folder....i thnk this is concerned with 'htaccess'........
#6

[eluser]Mareshal[/eluser]
Your CI is outdated
Your CI is not on root folder: C:/wamp/www/CodeIgniter_1.5.4/system/application/merablog/controllers/MyBlog/blog should be C:/wamp/www/system/application/merablog/controllers/MyBlog/blog - THIS MEANS ROOT FOLDER

BASE_URL = $config[‘base_url’]= “http://localhost/”; not your config

Good luck
#7

[eluser]pickupman[/eluser]
You could try:
Code:
$config['base_url']= 'http://'.$_SERVER['HTTP_HOST'].'/CodeIgniter_1.5.4/index.php/MyBlog/';
#8

[eluser]Uno*[/eluser]
you open the port 8080 (or that you use with wamp) on the firewall?




Theme © iAndrew 2016 - Forum software by © MyBB