We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Dev Mode? | Forum

Marcus
Marcus Feb 23 '16
I have many online users and as many guests as soon as I switch dev mode to true I get all kings of server errors it takes for ever to reload without showing any error.

My question is how can I do this process more secure like is there a way to only allow one IP address to access the site like mine so that only can refresh the site and not 1000 users making requests?
The Forum post is edited by Marcus Feb 23 '16
Marcus
Marcus Feb 23 '16
Thanks but it still will create requests since the script will have to process the request and since it's in dev mode I am not sure?

How about htaccess will that work?

Some like this:

# MAINTENANCE-PAGE REDIRECT
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REMOTE_ADDR} !^123\.456\.789\.000
RewriteCond %{REQUEST_URI} !/maintenance.html$ [NC]
RewriteCond %{REQUEST_URI} !\.(jpe?g?|png|gif) [NC]
RewriteRule .* /maintenance.html [R=302,L]
</IfModule>

The Forum post is edited by Marcus Feb 23 '16
ross Team
ross Feb 23 '16
Why do you keep dev mode ON?
Marcus
Marcus Feb 24 '16
I don't. When I make some modification I turn it ON then try to refresh but I get server errors all over the place for some time. I am not sure maybe it's case I have so many users online trying to access the site with dev mode on.

Do you think htaccess will be OK
ross Team
ross Feb 24 '16
what kind of server errors? please provide them here. 
Marcus
Marcus Feb 25 '16
I get. Server Error. The server encountered an internal error or misconfiguration

In addition something not found or empty I don't remember.

After refreshing a few times the site comes back to life but I don't like those errors.

Ross please tell what is the right way to enable dev mode and refresh the site or update the site without messing stuff up!

Do you think the htaccess solution I posted in the #3 is safe?
ross Team
ross Feb 25 '16
If you get this error, something is wrong on the server side, you need to contact your hosting provider support team to resolve the issue. 
ross Team
ross Feb 25 '16
Topic was moved from General Questions.
Marcus
Marcus Feb 25 '16
I am sure that this is cased case users are trying to send or resend forms on dev mode and that creates conflicts or errors.

Back to the question do you think htaccess is safe to use as maintenance mode? This ensures that nobody will molest the script during this operation but me!

I read some scary stuff about putting the site on maintenance mode though Admin Panel some users reported it got stuck or something.
ross Team
ross Feb 25 '16
Maintenance mode does not stuck, it just users don't know how to sign-in to the admin panel after enabling it. 

I would not recommend to do that via htaccess as it can break some parts of the site functionality. 

Marcus
Marcus Feb 25 '16
Good to know that from now on will use Admin option.

Thanks for amazing support I love you bro.