Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-09-2012, 07:10 PM   #1
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, 07:41 PM   #2
LQ Guru
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002

Correct me if I'm wrong, but are you talking about a wifi hotspot application? See here -


Old 01-09-2012, 09:05 PM   #3
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, 09:49 PM   #4
Senior Member
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
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.

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 09:57 PM.
Old 01-10-2012, 06:51 AM   #5
Registered: Feb 2005
Distribution: Mint, Raspbian
Posts: 34

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


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 11:58 AM
stand alone print server panamajack1 Linux - Hardware 3 07-03-2009 06:13 PM
looking for stand-alone ftp server mattsoftnet Linux - Software 7 05-08-2008 05:06 PM
Stand-alone server on a laptop? ratbatblue Linux - Laptop and Netbook 4 09-27-2004 12:40 AM
Stand alone Dns Server fail66 Linux - Networking 3 01-23-2002 08:51 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:53 AM.

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