Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About mstdmstdd

  • Rank
    Advanced Member

Recent Profile Visitors

566 profile views
  1. Hello, Looking at the article https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-16-04 I installed nginx under new ubuntu 18 installation under AWS and I want to make multiple domain names on 1 server. Fot this For this in AWS hosted zone in Route 53 console I created “sn.votes.demo.org” domain and I see https://prnt.sc/n1166s with domain names name servers at right. I suppose I have to use this domain name in my domain options. My /etc/nginx/sites-available/votes.com : upstream votes-backend { # Lets you define a group of servers server unix:/var/run/php7.2-fpm.sock; } server { listen 80; listen [::]:80; root /var/www/votes.com; index index.php; server_name nsn.votes.demo.org www.nsn.votes.demo.org; // domein created above # We keep this block, because it doesn't make sense to pass # everything to PHP. location / { # try_files $uri $uri/ =404; try_files $uri $uri/ /index.php index.php; } location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; # this defines a regular expression to separate the SCRIPT_FILENAME and PATH_INFO for later use try_files $uri =404; # OR Set cgi.fix_pathinfo=0 in php.ini (for security) fastcgi_pass votes-backend; # OR unix:/var/run/php7.2-fpm.sock OR fastcgi_index index.php; # appends index.php to a URI ending with a slash include fastcgi_params; } } In /etc/hosts : localhost localhost test.com ec2-13-NN-NN-NN.us-east-2.compute.amazonaws.com nsn.votes.demo.org www.nsn.votes.demo.org # is it correct ? # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts Is it valid format ? I checked log files : /var/log/nginx/access.log, /var/log/nginx/error.log, /var/log/php7.2-fpm.log But did not find any errors. Opening www.nsn.votes.demo.orgin browser I see quite different site untergrund.net opened. I have nothing with it. and I see ref to this site by console command wirth sinilar ref error: $ curl www.nsn.votes.demo.org <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>302 Found</title> </head><body> <h1>Found</h1> <p>The document has moved <a href="http://www.untergrund.net">here</a>.</p> <hr> <address>Apache/2.2.15 (CentOS) Server at www.nsn.votes.demo.org Port 80</address> </body></html>
  2. Hello! I look at locale description https://www.tecmint.com/linux-locate-command-practical-examples/ but I did not find if there is a way to specify in which subdirectory to make search ? Thanks!
  3. Could, you please provide an example or a link to such file ?
  4. I searched how to install multiple projects on nginx server and found some articles, like https://medium.freecodecamp.org/how-you-can-host-multiple-domain-names-and-projects-in-one-vps-7aed4f56e7a1 I added new server block with rather long server name(which I created in freenom) Checking the syntax I got error that server_names_hash_bucket_size must be set to 64 I tried to set and and did not find valid place for it. I found that it must be added under http block. I tried to add http block in my /etc/nginx/sites-available/default but got syntax error : $ sudo nginx -t nginx: [emerg] "http" directive is not allowed here in /etc/nginx/sites-enabled/default:22 nginx: configuration file /etc/nginx/nginx.conf test failed My /etc/nginx/sites-available/default : ## # You should look at the following URL's in order to grasp a solid understanding # of Nginx configuration files in order to fully unleash the power of Nginx. # https://www.nginx.com/resources/wiki/start/ # https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/ # https://wiki.debian.org/Nginx/DirectoryStructure # # In most cases, administrators will remove this file from sites-enabled/ and # leave it as reference inside of sites-available where it will continue to be # updated by the nginx packaging team. # # This file will automatically load configuration files provided by other # applications, such as Drupal or Wordpress. These applications will be made # available underneath a path with that package name, such as /drupal8. # # Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples. ## # Default server configuration # http { server_names_hash_bucket_size 64; } server { listen 80 default_server; listen [::]:80 default_server; # SSL configuration # # listen 443 ssl default_server; # listen [::]:443 ssl default_server; # # Note: You should disable gzip for SSL traffic. # See: https://bugs.debian.org/773332 # # Read up on ssl_ciphers to ensure a secure configuration. # See: https://bugs.debian.org/765782 # # Self signed certs generated by the ssl-cert package # Don't use them in a production server! # # include snippets/snakeoil.conf; # root /var/www/VotesDeploy/public; root /var/www/html; # Add index.php to the list if you are using PHP index index.php index.html index.htm index.nginx-debian.html; server_name ec2-rather-long-name.us-east-2.compute.amazonaws.com; location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. try_files $uri $uri/ /index.php?$query_string; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php7.2-fpm.sock; } location ~ /\.ht { deny all; } # pass PHP scripts to FastCGI server # #location ~ \.php$ { # include snippets/fastcgi-php.conf; # # # With php-fpm (or other unix sockets): # fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; # # With php-cgi (or other tcp sockets): # fastcgi_pass; #} # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # #location ~ /\.ht { # deny all; #} } server { listen 80; root /var/www/votes/public; index index.php index.html index.htm index.nginx-debian.html; server_name rather-long-name-demo.demo-apps.tk; location / { try_files $uri $uri/ /index.php?$query_string; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php7.2-fpm.sock; } location ~ /\.ht { deny all; } access_log /var/www/votes/storage/logs; # server_names_hash_bucket_size 64; } # Virtual Host configuration for example.com # # You can move that to a different file under sites-available/ and symlink that # to sites-enabled/ to enable it. # #server { # listen 80; # listen [::]:80; # # server_name example.com; # # root /var/www/example.com; # index index.html; # # location / { # try_files $uri $uri/ =404; # } #} Which is valid syntax ? Thanks!
  5. Thank you for the link, but with quick review I did not find how to create multiple websites under one server?
  6. Hello, If there is a way to import all mailchimp lists from one account to other? If yes, how? Thanks!
  7. looks like the problem was that in security group i forgot set httphttps access If there is a way to set Multiple Websites on Single instance with nginx ?
  8. Hello, I installed Ubuntu 18 instance under AWS and I found this article with nginx installation(I used this article with installation in Ubuntu 18 under Digital Ocean) https://devmarketer.io/learn/deploy-laravel-5-app-lemp-stack-ubuntu-nginx/ I installed nginx, but I am not sure whioch must be servwer name in nginx configurations : server { listen 80 default_server; listen [::]:80 default_server; root /var/www/html; index index.php index.html index.htm index.nginx-debian.html; server_name ec2-NN-NN-NN-NN.us-east-2.compute.amazonaws.com; location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. try_files $uri $uri/ =404; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php7.0-fpm.sock; } location ~ /\.ht { deny all; } where my Publick DNS NN-NN-NN-NN.us-east-2.compute.amazonaws.comI checked nginx syntax and restarted php and nginx $ sudo nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful $ sudo systemctl restart php7.2-fpm $ sudo service nginx restart But running url http://NN-NN-NN-NN.us-east-2.compute.amazonaws.com/I got error: But not nginx greeting page. Is it on AWS different and what did I miss? Thanks!
  9. Hi all, In my laravel 5.7/ blade / jQuery v3.3.1 / Bootstrap v4.1.2 app I see some additive html code on my inputs : https://imgur.com/a/1PqpKgR I have LastPass installed on my browser in my Google Chrome( Version 71.0.3578.98 (Official Build) (64-bit) ). And I suppose that LastPass adds some code, which is very annoying. Especcially if some functionality related with this input does not work properly... Are there some tags to be added/LastPass options/additive plugins to exclude these LastPass additive code ? Thanks
  10. Hi all, In my laravel 5.7 application I use "yajra/laravel-datatables-oracle": "~8.0" library and reading this https://m.datatables.net/forums/discussion/25666/how-to-customize-the-processing-messageI modified processing message with style : .dataTables_processing { margin-top: -80px !important; padding: 70px !important; background: #F5F8FA !important; color: blue !important; border: 2px dotted darkgrey; border-radius: 3px !important; font-size: xx-large !important; opacity : 1 !important; text-decoration: none; } and it works and I retrieve data on page open with empty data area. But I refresh data I do not see processing message : it is below(looks like middle of the data area). I tried to raise with adding to style above : vertical-align: top; vert-align: top; But failed. The html-code of my data area is : <div class="table-responsive"> <div id="get-vote-dt-listing-table_wrapper" class="dataTables_wrapper no-footer"> <div id="get-vote-dt-listing-table_filter" class="dataTables_filter" style="display: none;"><label>Search:<input type="search" class="" placeholder="" aria-controls="get-vote-dt-listing-table"></label> </div> <div id="get-vote-dt-listing-table_processing" class="dataTables_processing" style="display: block;">Loading votes... </div> <table class="table table-bordered table-striped text-primary dataTable no-footer" id="get-vote-dt-listing-table" role="grid" aria-describedby="get-vote-dt-listing-table_info"> <thead> <tr role="row"> <th class="details-control sorting_disabled" rowspan="1" colspan="1" style="width: 47px;">+ </th> <th class="sorting" tabindex="0" aria-controls="get-vote-dt-listing-table" rowspan="1" colspan="1" style="width: 59px;">Id </th> <th class="sorting" tabindex="0" aria-controls="get-vote-dt-listing-table" rowspan="1" colspan="1" style="width: 106px;">Name </th> <th class="sorting" tabindex="0" aria-controls="get-vote-dt-listing-table" rowspan="1" colspan="1" style="width: 113px;">Status </th> <th class="sorting" tabindex="0" aria-controls="get-vote-dt-listing-table" rowspan="1" colspan="1" style="width: 125px;">Is Quiz </th> <th class="sorting" tabindex="0" aria-controls="get-vote-dt-listing-table" rowspan="1" colspan="1" style="width: 219px;">Vote Category </th> <th class="sorting" tabindex="0" aria-controls="get-vote-dt-listing-table" rowspan="1" colspan="1" style="width: 178px;">Created At </th> <th class="sorting_disabled" rowspan="1" colspan="1" style="width: 28px;"></th> <th class="sorting_disabled" rowspan="1" colspan="1" style="width: 29px;"></th> </tr> </thead> <tbody></tbody> </table> <div class="dataTables_info" id="get-vote-dt-listing-table_info" role="status" aria-live="polite" style="display: none;"></div> <div class="dataTables_paginate paging_simple_numbers" id="get-vote-dt-listing-table_paginate"></div> </div> </div> 1) Which is right way with style modifications? 2) If laravel-datatables-oracle has method to clear data area rows before data retrieving ? I think that could be helpfull... Here is live example at http://demo2.nilov-sergey-demo-apps.tk/login It is under credentials admin@demo.com 111111 after that http://demo2.nilov-sergey-demo-apps.tk/admin/box-rooms on uploading page message is visible within 1-2 seconds If in filter field “Enter Box Room No.” enter value “001” and click “Search” I added 30 seconds delay for debugging in browser. You need to scroll down to see processing message... Thanks!
  11. Hello ! Can you advice some Jquery 3 library/plugin compatible with Bootstrap 4.1 for formatting of input for entering money in valid format(with decmals, thouthand separator etc...) and not permitting to enter invalid chars ? Thanks!
  12. Hello all. Could you please to look at layout of the Bootstrap 4.1 page: http://demo2.nilov-sergey-demo-apps.tk/admin/warehouses/2/edit It is under credentials admin@demo.com 111111 I made menu at left side by some sample(it must be hidden on small device). But with this left menu there are some features I would like to fix : 1) I need page content (blue border) to be centered and it is ruled by styles : .wrapper { display: flex; align-items: stretch; border: 2px dotted red; margin-right: auto; margin-left: auto; padding: 0 !important; } #page-wrapper { margin-right: 10px; margin-left: 10px; padding: 0 !important; width: 100% !important; border: 1px solid blue !important; align-content: center; } Looks like the reason is in props display and align-items of wrapper class, but when I tried to modify these values the left menu stopped working 2) Listing http://demo2.nilov-sergey-demo-apps.tk/admin/clients with many columns must be with horizontal scrolling, but instead scrolling of table with data with syntax <div class="table-responsive"> <div id="get-client-dt-listing-table_wrapper" class="dataTables_wrapper no-footer"> all page is moving by mouse move. Again I suspect that is because of left menu How to fix it ? Thanks!
  13. Hello, Reading this https://getbootstrap.com/docs/4.1/migration/#utilities docs I try in Bootsrap 4.1 app to show “Toggle Sidebar” button only on small and extrasmall devices, and I do <main> <div id="main_content"> <div class="d-md-none d-lg-none d-xl-none "> <nav class="navbar navbar-expand-lg navbar-light bg-light "> <div class="container-fluid"> <button type="button" id="sidebarCollapse" class="btn btn-info"> <i class="fa fa-align-left" style="color: white"></i> <span>Toggle Sidebar</span> </button> </div> </nav> </div> @yield('content') </div> </main> But it does not work for small devices : it is not visible, on all the rest devices works as expected I tried to add d-sm-block class : <div class="d-sm-block d-md-none d-lg-none d-xl-none "> But it does not work anyway... Which is the right way? Thanks!
  14. Hello, Can you advice me similar left side menu(left aligned, submenu items, collapsing on extra small devices) https://bootsnipp.com/snippets/featured/vertical-affix-menu-css-only but implemented in bootstrap 4.1 ? 2) Or can you say is it possible and what have I to do remake it to bootstrap 4.1 ? Thanks!
  15. Hello! With new task description my client wrote I suppose that is like scrolling on youtube ? When there is no pagination bar and scrolling down more data rows are retrieved? It was supposed to be laravel 5.7/jquery 3 project with using of https://datatables.yajrabox.com/ for listings. But seems this lib has no such functionality. Are there some compatible libraries with such functionality ? Thanks !

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.