Answer the question
In order to leave comments, you need to log in
How to make the site open not by URL path, but by host?
Good afternoon.
I am starting to learn GNU/Linux and chose ubuntu 14.04 for this.
To begin with, I installed owncloud using this guide , but there was a problem:
When I go to IP 192.168.0.100/owncloud, I get an authorization page.
When I go to 192.168.0.100 it says
Not Found
The requested URL /index.php was not found on this server.
Apache/2.4.7 (Ubuntu) Server at 192.168.0.100 Port 80
Answer the question
In order to leave comments, you need to log in
You did not find the index.php file that Apache wants to give. When you go to 192.168.0.100 you get /var/www (by default in ubuntu), when you open 192.168.0.100/owncloud you get into another directory.
Learn more carefully, more thoughtfully.
If this is the question, then parse the apahce2.conf files from /etc/apache2 there are a lot of comments, so in ubuntu you need to run
sed '/#/d' /etc/apache2/apache2.conf
in the console (this is where text mode is) /etc/apache2/apache2.conf>
> /etc/apache2/apache2.conf.txt
All commented out lines will be removed from there, it will be easier to read for an unprepared user. Then you will need to google every incomprehensible parameter of the config file and there will be enlightenment.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question