GithubHelp home page GithubHelp logo

Comments (5)

mlutfy avatar mlutfy commented on September 4, 2024 1

On your other computer, you probably want only:

10.100.96.242 aegir.ahut.edu aegir

(not the 127.0.0.1 entry)

from documentation.

jileilei avatar jileilei commented on September 4, 2024

Thank you very much!@mlutfy I doubt whether I understand what you mean .
I have add the follow code 10.100.96.242 aegir.ahut.edu aegir on my another computer.
but , I still can't browse aegir from another computer, I can browse aegir with aegir.ahut.edu or 10.100.96.242 from localhost computer(10.100.96.242 is physical IP)
I guess Is it what I should configure on the apache.conf file?

I only know a little about the configuration of apahce.

The follow code is my VirtualHost VirtualHost configuration

<VirtualHost *:80>


  DocumentRoot /var/aegir/hostmaster-7.x-3.11.2
  ServerName aegir.ahut.edu
#  ServerName 10.100.96.242
  SetEnv db_type  mysql
  SetEnv db_name  aegirahutedu
  SetEnv db_user  aegirahutedu
  SetEnv db_passwd  xxxxx
  SetEnv db_host  localhost
  SetEnv db_port  3306

  ServerAlias 10.100.96.242

<IfModule mod_rewrite.c>
  RewriteEngine on
 # Redirect all aliases to the main http url.
 RewriteCond %{HTTP_HOST} !^aegir.ahut.edu$ [NC]
 RewriteRule ^/*(.*)$ http://aegir.ahut.edu/$1 [NE,L,R=301]
  RewriteRule ^/files/(.*)$ /sites/aegir.ahut.edu/files/$1 [L]
  RewriteCond /var/aegir/hostmaster-7.x-3.11.2/sites/aegir.ahut.edu/files/robots.txt -f
  RewriteRule ^/robots.txt /sites/aegir.ahut.edu/files/robots.txt [L]
</IfModule>

# Extra configuration from modules:

    # Error handler for Drupal > 4.6.7
    <Directory ~ "sites/.*/files">
      <Files *>
        SetHandler This_is_a_Drupal_security_line_do_not_remove
      </Files>
      Options None
      Options +FollowSymLinks

      # If we know how to do it safely, disable the PHP engine entirely.
      <IfModule mod_php5.c>
        php_flag engine off
      </IfModule>
    </Directory>

    # Prevent direct reading of files in the private dir.
    # This is for Drupal7 compatibility, which would normally drop
    # a .htaccess in those directories, but we explicitly ignore those
    <Directory "/var/aegir/hostmaster-7.x-3.11.2/sites/aegir.ahut.edu/private/" >
      <Files *>
        SetHandler This_is_a_Drupal_security_line_do_not_remove
      </Files>
      Deny from all
      Options None
      Options +FollowSymLinks

      # If we know how to do it safely, disable the PHP engine entirely.
      <IfModule mod_php5.c>
        php_flag engine off
      </IfModule>
    </Directory>

from documentation.

mlutfy avatar mlutfy commented on September 4, 2024

Seems OK to me. From the other computer, what does the browser display? (i.e. error message? default vhost? does it fail to connect?)

from documentation.

jileilei avatar jileilei commented on September 4, 2024

Thank you very much @mlutfy .On my other computer, set my hosts file with follow is a good solution to my question:
10.100.96.242 aegir.ahut.edu aegir

I didn't have any effect after setting up last night. It's already possible to try again today. Maybe I haven't made it up yet before I browse.

Thank you for your prompt answer. It saved me a lot of time.

from documentation.

helmo avatar helmo commented on September 4, 2024

sounds resolved...

from documentation.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.