Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5049

Running apache2 locally without including full path

$
0
0

I Installed apache server on ubuntu to test my application locally.

The applications hosted on that server are all in the html folder located at the following path /var/www/html

When I write localhost, it displays the Index of the folder that are in my html file.

Let's say my application is called application01, to run it I have to write localhost/application01/src/en/index.html to the adress bar.

enter image description here

I want to be able to access it witchout having to include the whole path.

Something like this:

enter image description here

My apache2.config file contains the following:

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Require all denied
</Directory>

<Directory /usr/share>
    AllowOverride None
    Require all granted
</Directory>

<Directory /var/www/html/>
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
</Directory>

I tried to changed the Directory to /var/www/html/application01/src/, but it didn't work.

Thank you.


Viewing all articles
Browse latest Browse all 5049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>