how to turn on rewrite_module in web-server at port:63342

Hello.
- I know where to turn on rewrite_module in Apache (e.g., this module is turned off in WAMP by default).
- But I don't see any info about this module while launching <?php  phpinfo() ?> for built-in server at port:63342.
- Where can I check status / turn on this module in 63342 server, since it seems to be the reason of blocking custom routes in Laravel ?

5 comments
Comment actions Permalink

Hi there,

There is no such rewrite_module in built-in web server.

It's SIMPLE web server (written in Java AFAIK, possibly this one) and not actual Apache.

0
Comment actions Permalink

If you need .htaccess and mod_rewrite support, then I may only quote this official reply:

actually some (partial) support is available. But RewriteEngine directive is not supported. Please try using FallbackResource instead.
Also, you would need to install Apache config (.htaccess) support plugin - it's available in Plugins repository

If you need more support (RewriteEngine directive, etc.), please file a feature request to youtrack (http://youtrack.jetbrains.com/issues/WEB). Make sure to attach a test project and describe the expected behavior there

I still have not seen anyone creating such ticket... Possibly people think: it's easier (and faster) to install proper Apache rather than wait XX months until it will be implemented in built-in server (plus, who knows what restrictions such implementation will have).


In any case: if you believe that such feature will be very useful in built-in server then please follow the advice.

0
Comment actions Permalink

Thank you for the detailed reply.

- You are absolutely right: to install and fully tune any *AMP stack takes max 10 min.
- And I don't believe that IDEA developers will be allowed to spend time on this feature, since there are alternatives (Apache, Nginx, IIS) with full production support, etc.
- But even though I received reply about ' WEB-9144 Allow to turn off Built-In web server ' ("If you configure deployment server (Remote Hosts plugin), configured deployment server will be used. In case of problem please file separate issue.") - this doesn't work locally: shortcut Alt + F2 launches *.HTML files via http://localhost:63342 anyway.

P.S. When you say ' FallbackResource ' - does it mean ' FallbackResource on ' (like ' RewriteEngine on ' ) ?

0
Comment actions Permalink

P.S. When you say ' FallbackResource ' - does it mean ' FallbackResource on ' (like ' RewriteEngine on ' ) ?

It was not my words -- I've only quoted another person.

I personally do not know what .htaccess instructions are supported -- have not seen any help pages about that.

But even though I received reply about ' WEB-9144 Allow to turn off Built-In web server ' ("If you configure deployment server (Remote Hosts plugin), configured deployment server will be used. In case of problem please file separate issue.") - this doesn't work locally: shortcut Alt + F2 launches *.HTML files via http://localhost:63342 anyway.

The guy is correct -- it SHOULD work that way (worked in the past) ... but it does not (I've just tried myself and got the same result as you). Although it still works fine in current stable v7.1.3.

Please submit new ticket about that problem.

0

Please sign in to leave a comment.