Note that there are some explanatory texts on larger screens.

plurals
  1. POStrange behaviour between wamp and lamp (ubuntu)
    primarykey
    data
    text
    <p>Ever since I moved to Linux, I noted some strange behaviour. In Ubuntu, <code>http://localhost/index</code> works but on WAMP it does not work. <strong>I tested this with APACHE's rewrite module set to off on both</strong>. Any good explanation? <img src="https://i.stack.imgur.com/8CGi7.jpg" alt="Strange WAMP &amp; LAM behavior"></p> <p>Apache.conf (LAMP)</p> <p>etc/apache2/sites-enabled/000-default</p> <pre><code>&lt;VirtualHost *:80&gt; ServerAdmin webmaster@localhost DocumentRoot /var/www &lt;Directory /&gt; Options FollowSymLinks AllowOverride None &lt;/Directory&gt; &lt;Directory /var/www/&gt; Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all &lt;/Directory&gt; </code></pre> <p>Apache.conf WAMP</p> <pre><code>&lt;Directory "C:/wamp/www/"&gt; # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.2/mod/core.html#options # for more information. # Options Indexes FollowSymLinks # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride all # # Controls who can get stuff from this server. # # onlineoffline tag - don't remove Order Allow,Deny Allow from all &lt;/Directory&gt; </code></pre> <h1>EDIT: Why it behaves this way thanks to [tntu][2]</h1> <p>Because of the directive <code>Options Indexes FollowSymLinks MultiViews</code> on LAMP (ubuntu), the url localhost/index can resolve to the file index.php, index.html. So foo would also result into foo.php, foo.html. A proper explanation can be derived from <a href="http://httpd.apache.org/docs/current/content-negotiation.html" rel="nofollow noreferrer">http://httpd.apache.org/docs/current/content-negotiation.html</a></p> <h2>Don't be confused to think this is url rewriting</h2>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload