UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Put some HTML or text file into Apache's document root.
Locate Apache's Home folder and add sample contents
You need to be root to put files to that place. I.e., in a terminal, type,
Quote:
sudo nautilus /var/www
The file manager Nautilus will open that folder, and you can create some file there by right-clicking, "Create document >> Empty File".
A file will be created.
Double-click it and enter some random text. Save, and close the editor.
Rename the file to "test.html" by right-clicking it in Nautilus.
Enable web users to view it
Right-click the file, select "Properties", and a dialog will pop up. There, choose the tab "Permissions", and give "Others" "Read" permissions.
We really cannot know what you mean. - Your messages are too short and not specific enough.
- Thanks for your understanding.
-----------
Quote:
I do
What exactly did you do?
Quote:
and works
What works, exactly?
Quote:
But I still have the page test.html in my computer not in apache server...
That's not understandable to anyone. Make it absolutely reproducable to the readers, else, forget it.
- Is this the first time you're requesting support?
What I mean it's that the test.html page appears in the browser. But this page is in the computer not in apache serve. I want create a web site in apache, in apache server. A page that can be see in any computer. A page online. I don't know if that is possible...
Sorry my english!
Thanks, I understand. - Usually, people host their web pages at remote servers, by contracting with an internet service provider. Keyword: "web hosting".
You apparently want the files on your computer being accessed remotely, by other people.
What's the output of
Code:
ifconfig
and how do you connect to the internet - using a DSL provider? - sharing a DSL line with others? - being in a corporate network?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.