LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-09-2012, 06:10 PM   #1
bigwheel
Member
 
Registered: Feb 2005
Distribution: Mint, Raspbian
Posts: 34

Rep: Reputation: 15
Stand alone web server over wifi


What applications would I need to use to get a web server that can be accessed by other computers over wifi?

In other words, a pc that has a wireless card and when a user connects to it over wireless, a web page shows up.
 
Old 01-09-2012, 06:41 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Hello,

Correct me if I'm wrong, but are you talking about a wifi hotspot application? See here - http://dev.wifidog.org/

Cheers,

Josh
 
Old 01-09-2012, 08:05 PM   #3
bigwheel
Member
 
Registered: Feb 2005
Distribution: Mint, Raspbian
Posts: 34

Original Poster
Rep: Reputation: 15
Thank you for that link, it is close to what I need but not exactly. The goal is to serve an html page from the pc, not from the internet. There is no connection to the internet. Maybe it is a VPN? I don't know much about networking.

The user would connect to the server via wireless, and the server would allow the user to open a webpage, which leads to other web applications.
 
Old 01-09-2012, 08:49 PM   #4
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 372Reputation: 372Reputation: 372Reputation: 372
It looks like you're using Ubuntu.

So, you can install Apache 2 with something like: "sudo apt-get install apache2"

After that, you'll be reading a bit. You'll need to configure apache and set up locations for your internal web space. You can find official documentation here

The simplest approach would be to place directories/files under /var/www and make sure the directories/files are readable by everyone.

To access, go to another machine on the same wireless network and type "http://<ip address of server>/path/to/page.html" as the web address in your browser.

Replace <ip address of server> with the IP address on the server (which you should be able to find by running "sudo ifconfig" on the server)

Replace path/to/page.html with the path and filename of the HTML page to load starting from /var/www (e.g. a web page stored at /var/www/testing/welcome.html would be reference by "http://<ip address of server>/testing/welcome.html")

If basic access does not work--refer to the documentation. There may be a directive in your configuration file (near the beginning) that denies access to computers other than the computer running apache itself.

Lastly, keep in mind that if you want to use other web-based technologies (e.g. PHP), they are likely plugins/mods for apache that you will also need to install through your package manager.

EDIT:
I made the assumption that your internal wireless network does not have a DNS server running. If you do, and it's setup properly, then obviously you would not need to use the ip address of the server to access it. You could just use the normal hostname. Additionally, if all the computers involved have avahi (or an equivalent zero-config network setup), then you may be able to refer to the server by hostname alone as well (e.g. "http://mywebserver/testing/welcome.html")

Last edited by Dark_Helmet; 01-09-2012 at 08:57 PM.
 
Old 01-10-2012, 05:51 AM   #5
bigwheel
Member
 
Registered: Feb 2005
Distribution: Mint, Raspbian
Posts: 34

Original Poster
Rep: Reputation: 15
Thank you very much, I will try this
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ubuntu server 9.04 (with xubuntu-desktop) will connect to wifi but not the web theacerguy Ubuntu 3 08-16-2009 10:58 AM
stand alone print server panamajack1 Linux - Hardware 3 07-03-2009 05:13 PM
looking for stand-alone ftp server mattsoftnet Linux - Software 7 05-08-2008 04:06 PM
Stand-alone server on a laptop? ratbatblue Linux - Laptop and Netbook 4 09-26-2004 11:40 PM
Stand alone Dns Server fail66 Linux - Networking 3 01-23-2002 07:51 AM


All times are GMT -5. The time now is 12:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration