IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Réseau Discussion :

Apache et Owncloud. Vers qui me tourner ?


Sujet :

Réseau

  1. #61
    Membre régulier
    Homme Profil pro
    diagnoticien
    Inscrit en
    Novembre 2014
    Messages
    86
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 55
    Localisation : France, Bas Rhin (Alsace)

    Informations professionnelles :
    Activité : diagnoticien
    Secteur : Transports

    Informations forums :
    Inscription : Novembre 2014
    Messages : 86
    Points : 110
    Points
    110
    Par défaut
    Salut Bvsud
    As vu de tout ça , cela parais pas mal du tout

    Donc ton installe tu le fait sur un PC avec linux debian , et tu installes un chroot debian sur ta carte mémoire externe si je comprend bien?

    Attend ton retour après installation d'apache

    Si jamais ça peut être utile voila ce que j'ai installer de base:

    apt-get install apache2
    apt-get install php5
    apt-get install mysql-server
    apt-get install php5-mysql
    apt-get install php5-gd
    apt-get install build-essential

  2. #62
    Membre régulier

    Profil pro
    Inscrit en
    Avril 2004
    Messages
    536
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2004
    Messages : 536
    Points : 121
    Points
    121
    Par défaut
    Salut, Allan )

    Ben... C'est en ipv4, mais inaccessible par owncloud client depuis la bécane windows, en saisissant l'IP publique.
    apt-get install build-essential ? Ce n'était pas ds mon tuto. Je vais le rajouter.

    Je suis parti d'une ISO de Jessie, depuis un support USB rendu bootable avec Rufus.

    Les test sont pourtant bons.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    root@deb-srv2:~# netstat -ntlp | grep ":80 "
    tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      2088/apache2

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
     
     
    root@deb-srv2:~# ip a s eth0
    2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
        link/ether f4:6d:04:20:f9:90 brd ff:ff:ff:ff:ff:ff
        inet 192.168.0.13/24 brd 192.168.0.255 scope global eth0
           valid_lft forever preferred_lft forever
    Ce '2', devant eth0 : ça correspond à quoi ?


    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    root@deb-srv2:~# apache2ctl -S
    VirtualHost configuration:
    *:80                   is a NameVirtualHost
             default server localhost (/etc/apache2/sites-enabled/000-default.conf:1)
             port 80 namevhost localhost (/etc/apache2/sites-enabled/000-default.conf:1)
             port 80 namevhost localhost (/etc/apache2/sites-enabled/owncloud.conf:1)
    ServerRoot: "/etc/apache2"
    Main DocumentRoot: "/var/www/html"   ==>>> FAUX !
    Main ErrorLog: "/var/log/apache2/error.log"
    Mutex watchdog-callback: using_defaults
    Mutex rewrite-map: using_defaults
    Mutex default: dir="/var/lock/apache2" mechanism=fcntl 
    Mutex mpm-accept: using_defaults
    PidFile: "/var/run/apache2/apache2.pid"
    Define: DUMP_VHOSTS
    Define: DUMP_RUN_CFG
    User: name="www-data" id=33
    Group: name="www-data" id=33
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    apache2ctl configtest
    Syntax OK
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
     
    root@deb-srv2:~# apache2ctl status
    Apache Server Status for localhost (via 127.0.0.1)
     
    Server Version: Apache/2.4.10 (Debian)
    Server MPM: prefork
    Server Built: Sep 20 2017 04:37:43
     
    -------------------------------------------------------------------------------
     
    Current Time: Wednesday, 10-Jan-2018 19:15:40 CET
    Restart Time: Wednesday, 10-Jan-2018 19:13:55 CET
    Parent Server Config. Generation: 1
    Parent Server MPM Generation: 0
    Server uptime: 1 minute 44 seconds
    Server load: 0.35 0.26 0.13
    Total accesses: 0 - Total Traffic: 0 kB
    CPU Usage: u0 s0 cu0 cs0
    0 requests/sec - 0 B/second -
    1 requests currently being processed, 4 idle workers
     
    W____...........................................................
    ................................................................
    ......................
     
    Scoreboard Key:
    "_" Waiting for Connection, "S" Starting up, "R" Reading Request,
    "W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
    "C" Closing connection, "L" Logging, "G" Gracefully finishing,
    "I" Idle cleanup of worker, "." Open slot with no current process
    service apache2 status
    En vert : le point, et active (running)


    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
     
    root@deb-srv2:~# service apache2 status
    ● apache2.service - LSB: Apache2 web server
       Loaded: loaded (/etc/init.d/apache2)
      Drop-In: /lib/systemd/system/apache2.service.d
               └─forking.conf
       Active: active (running) since mer. 2018-01-10 19:13:56 CET; 2min 4s ago
      Process: 2050 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
      Process: 2073 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)
       CGroup: /system.slice/apache2.service
               ├─2088 /usr/sbin/apache2 -k start
               ├─2092 /usr/sbin/apache2 -k start
               ├─2093 /usr/sbin/apache2 -k start
               ├─2094 /usr/sbin/apache2 -k start
               ├─2095 /usr/sbin/apache2 -k start
               └─2096 /usr/sbin/apache2 -k start
     
    janv. 10 19:13:55 deb-srv2 systemd[1]: Starting LSB: Apache2 web server...
    janv. 10 19:13:56 deb-srv2 apache2[2073]: Starting web server: apache2.
    janv. 10 19:13:56 deb-srv2 systemd[1]: Started LSB: Apache2 web server.
    Le /var/www/owncloud/config.php : (cette fois, j'ai placé owncloud dans un dossier à lui, et évité d'écraser le /var/www/index.html de='Apache.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
     
    <?php
    $CONFIG = array (
      'instanceid' => 'ocskkfdhe6bf',
      'passwordsalt' => 'hdjGlMjWxhFq+/iyMxF6HHNSFRbLZQ',
      'secret' => 'qTYJO85Rkc22NxZKzBzfR8qkf4SBFekJEv/GGWtaFk2ES92s',
      'trusted_domains' => 
      array (
        0 => '192.168.0.13',
        1 => 'IP publique', 
      ),
      'datadirectory' => '/var/www/owncloud/data',
      'overwrite.cli.url' => 'http://192.168.0.13',  ==>> C'est peut-être là, l'erreur. L'IP locale ? Ou même lIP locale mai /24 ?
      'dbtype' => 'mysql',
      'version' => '10.0.4.4',
      'dbname' => 'owncloud',
      'dbhost' => 'localhost',
      'dbtableprefix' => 'oc_',
      'dbuser' => 'oc_root',
      'dbpassword' => '+ligJ9aNumCjpRUox4GeOQfYh5hzO6',
      'logtimezone' => 'UTC',
      'installed' => true,
      'mail_smtpmode' => 'smtp',
      'mail_smtpsecure' => 'tls',
      'mail_from_address' => 'LOGIN DE MON EMAIL',
      'mail_domain' => 'MON NOM DE DOMAINE.FR',
      'mail_smtpauthtype' => 'LOGIN',
      'mail_smtpauth' => 1,
      'mail_smtphost' => 'smtp de mon sebmail',
      'mail_smtpport' => '587',
      'mail_smtpname' => 'mon email',
      'mail_smtppassword' => 'psw du mail',
    );
    /etc/apache2/sites-available/000-default.conf :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
     
    <VirtualHost *:80>
    	# The ServerName directive sets the request scheme, hostname and port that
    	# the server uses to identify itself. This is used when creating
    	# redirection URLs. In the context of virtual hosts, the ServerName
    	# specifies what hostname must appear in the request's Host: header to
    	# match this virtual host. For the default virtual host (this file) this
    	# value is not decisive as it is used as a last resort host regardless.
    	# However, you must set it for any further virtual host explicitly.
    	#ServerName www.example.com
     
    	ServerAdmin webmaster@localhost
    	DocumentRoot /var/www/owncloud
     
    	# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
    	# error, crit, alert, emerg.
    	# It is also possible to configure the loglevel for particular
    	# modules, e.g.
    	#LogLevel info ssl:warn
     
    	ErrorLog ${APACHE_LOG_DIR}/error.log
    	CustomLog ${APACHE_LOG_DIR}/access.log combined
     
    	# For most configuration files from conf-available/, which are
    	# enabled or disabled at a global level, it is possible to
    	# include a line for only one particular virtual host. For example the
    	# following line enables the CGI configuration for this host only
    	# after it has been globally disabled with "a2disconf".
    	#Include conf-available/serve-cgi-bin.conf
    </VirtualHost>
    <Directory /var/www/html>
        AllowOverride all
    </Directory>
    /etc/apache2/sites-available/owncloud.conf

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
     
     
    <VirtualHost *:80>
    	# The ServerName directive sets the request scheme, hostname and port that
    	# the server uses to identify itself. This is used when creating
    	# redirection URLs. In the context of virtual hosts, the ServerName
    	# specifies what hostname must appear in the request's Host: header to
    	# match this virtual host. For the default virtual host (this file) this
    	# value is not decisive as it is used as a last resort host regardless.
    	# However, you must set it for any further virtual host explicitly.
    	#ServerName www.example.com
     
    	ServerAdmin webmaster@localhost
    	DocumentRoot /var/www/owncloud
     
    	# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
    	# error, crit, alert, emerg.
    	# It is also possible to configure the loglevel for particular
    	# modules, e.g.
    	#LogLevel info ssl:warn
     
    	ErrorLog ${APACHE_LOG_DIR}/error.log
    	CustomLog ${APACHE_LOG_DIR}/access.log combined
     
    	# For most configuration files from conf-available/, which are
    	# enabled or disabled at a global level, it is possible to
    	# include a line for only one particular virtual host. For example the
    	# following line enables the CGI configuration for this host only
    	# after it has been globally disabled with "a2disconf".
    	#Include conf-available/serve-cgi-bin.conf
    </VirtualHost>
     
    # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
    <Directory /var/www/html>
        AllowOverride all
    </Directory>
    Fichier /etc/netconfig modifié par moi durant l' "érradication" de l'ipv6 :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
     
    # Fichier /etc/netconfig
     
    # The network configuration file. This file is currently only used in
    # conjunction with the TI-RPC code in the libtirpc library.
    #
    # Entries consist of:
    #
    #       <network_id> <semantics> <flags> <protofamily> <protoname> \
    #               <device> <nametoaddr_libs>
    #
    # The <device> and <nametoaddr_libs> fields are always empty in this
    # implementation.
    #
     
    udp        tpi_clts      v     inet     udp     -       -
    tcp        tpi_cots_ord  v     inet     tcp     -       -
     
    #udp6       tpi_clts      v     inet6    udp     -       -
    #tcp6       tpi_cots_ord  v     inet6    tcp     -       -
     
    udp4       tpi_clts      v     inet4    udp     -       -
    tcp4       tpi_cots_ord  v     inet4    tcp     -       -
    rawip      tpi_raw       -     inet      -      -       -
    local      tpi_cots_ord  -     loopback  -      -       -
    unix       tpi_cots_ord  -     loopback  -      -       -
    Le fichier /etc/network/interfaces :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
     
    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).
     
    #source /etc/network/interfaces/*
     
    # The loopback network interface
      auto lo
      iface lo inet loopback
     
    # The primary network interface
      auto eth0
      iface eth0 inet static
      address 192.168.0.13
      netmask 255.255.255.0
      broadcast 192.168.0.255
      mtu 1500
      gateway 192.168.0.254
    Fichier /etc/hosts :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
     
    127.0.0.1	localhost
    127.0.0.1	deb-srv.localnet dev-srv
    192.168.0.13	deb-srv.localnet dev-srv
     
    # The following lines are desirable for IPv6 capable hosts
    #::1     localhost ip6-localhost ip6-loopback
    #ff02::1 ip6-allnodes
    #ff02::2 ip6-allrouters
    Fichier Wired connection 1
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    # /etc/NetworkManage/system-connections/Wired connection 1
    
    [connection]
    id=Wired connection 1
    uuid=33fb5cba-16fe-4ebb-8683-a953a552cc04
    type=802-3-ethernet
    
    [802-3-ethernet]
    mac=F4:6D:04:20:F9:90
    
    [ipv4]
    method=manual
    dns=192.168.0.254;
    addresses1=192.168.0.13;24;192.168.0.254;   =>> ça me rappelle qqch : 192.168.0.13/24 Je devrais le mettre quelque part ?
    
    #[ipv6]
    #method=auto
    #ip6-privacy=2
    Fichier /etc/sysctl.conf : regarde. Je me suis gourré sur l'ipv4 !
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
     
    # /etc/sysctl.conf - Configuration file for setting system variables
    # See /etc/sysctl.d/ for additional system variables.
    # See sysctl.conf (5) for information.
    #
     
    #kernel.domainname = example.com
     
    # Uncomment the following to stop low-level messages on console
    #kernel.printk = 3 4 1 3
     
    ##############################################################3
    # Functions previously found in netbase
    #
     
    # Uncomment the next two lines to enable Spoof protection (reverse-path filter)
    # Turn on Source Address Verification in all interfaces to
    # prevent some spoofing attacks
    #net.ipv4.conf.default.rp_filter=1
    #net.ipv4.conf.all.rp_filter=1
     
    # Uncomment the next line to enable TCP/IP SYN cookies
    # See http://lwn.net/Articles/277146/
    # Note: This may impact IPv6 TCP sessions too
    #net.ipv4.tcp_syncookies=1
     
    # Uncomment the next line to enable packet forwarding for IPv4
    #net.ipv4.ip_forward=1
     
    # Uncomment the next line to enable packet forwarding for IPv6
    #  Enabling this option disables Stateless Address Autoconfiguration
    #  based on Router Advertisements for this host
    #net.ipv6.conf.all.forwarding=1
     
     
    ###################################################################
    # Additional settings - these settings can improve the network
    # security of the host and prevent against some network attacks
    # including spoofing attacks and man in the middle attacks through
    # redirection. Some network environments, however, require that these
    # settings are disabled so review and enable them as needed.
    #
    # Do not accept ICMP redirects (prevent MITM attacks)
    #net.ipv4.conf.all.accept_redirects = 0
    #net.ipv6.conf.all.accept_redirects = 0
    # _or_
    # Accept ICMP redirects only for gateways listed in our default
    # gateway list (enabled by default)
    # net.ipv4.conf.all.secure_redirects = 1
    #
    # Do not send ICMP redirects (we are not a router)
    #net.ipv4.conf.all.send_redirects = 0
    #
    # Do not accept IP source route packets (we are not a router)
    #net.ipv4.conf.all.accept_source_route = 0
    #net.ipv6.conf.all.accept_source_route = 0
    #
    # Log Martian Packets
    #net.ipv4.conf.all.log_martians = 1
    #
     
     
    ########## DESACTIVATION DE L'ipv6 ########################################################
     
    # désactivation de ipv6 pour toutes les interfaces
    net.ipv6.conf.all.disable_ipv6 = 1
     
    # désactivation de l’auto configuration pour toutes les interfaces
    net.ipv6.conf.all.autoconf = 0
     
    # désactivation de ipv6 pour les nouvelles interfaces (ex:si ajout de carte réseau)
    net.ipv6.conf.default.disable_ipv6 = 1
     
    # désactivation de l’auto configuration pour les nouvelles interfaces
    net.ipv6.conf.default.autoconf = 0
     
     
    ###########################################################################################
    Fichier /etc/apache2/ports.conf :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
     
    # Fichier /etc/apache2/ports.conf
     
    # If you just change the port or add more ports here, you will likely also
    # have to change the VirtualHost statement in
    # /etc/apache2/sites-enabled/000-default.conf
     
    # Réactivé ceci :
    Listen 80
     
     
    Listen 0.0.0.0:80
     
    <IfModule ssl_module>
    	Listen 443
    </IfModule>
     
    <IfModule mod_gnutls.c>
    	Listen 443
    </IfModule>
     
    # vim: syntax=apache ts=4 sw=4 sts=4 sr noet

    Fichier /etc/apache2/apache2.conf :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
     
     
    # This is the main Apache server configuration file.  It contains the
    # configuration directives that give the server its instructions.
    # See http://httpd.apache.org/docs/2.4/ for detailed information about
    # the directives and /usr/share/doc/apache2/README.Debian about Debian specific
    # hints.
    #
    #
    # Summary of how the Apache 2 configuration works in Debian:
    # The Apache 2 web server configuration in Debian is quite different to
    # upstream's suggested way to configure the web server. This is because Debian's
    # default Apache2 installation attempts to make adding and removing modules,
    # virtual hosts, and extra configuration directives as flexible as possible, in
    # order to make automating the changes and administering the server as easy as
    # possible.
     
    # It is split into several files forming the configuration hierarchy outlined
    # below, all located in the /etc/apache2/ directory:
    #
    #	/etc/apache2/
    #	|-- apache2.conf
    #	|	`--  ports.conf
    #	|-- mods-enabled
    #	|	|-- *.load
    #	|	`-- *.conf
    #	|-- conf-enabled
    #	|	`-- *.conf
    # 	`-- sites-enabled
    #	 	`-- *.conf
    #
    #
    # * apache2.conf is the main configuration file (this file). It puts the pieces
    #   together by including all remaining configuration files when starting up the
    #   web server.
    #
    # * ports.conf is always included from the main configuration file. It is
    #   supposed to determine listening ports for incoming connections which can be
    #   customized anytime.
    #
    # * Configuration files in the mods-enabled/, conf-enabled/ and sites-enabled/
    #   directories contain particular configuration snippets which manage modules,
    #   global configuration fragments, or virtual host configurations,
    #   respectively.
    #
    #   They are activated by symlinking available configuration files from their
    #   respective *-available/ counterparts. These should be managed by using our
    #   helpers a2enmod/a2dismod, a2ensite/a2dissite and a2enconf/a2disconf. See
    #   their respective man pages for detailed information.
    #
    # * The binary is called apache2. Due to the use of environment variables, in
    #   the default configuration, apache2 needs to be started/stopped with
    #   /etc/init.d/apache2 or apache2ctl. Calling /usr/bin/apache2 directly will not
    #   work with the default configuration.
     
     
    # Global configuration
    #
     
    #
    # ServerRoot: The top of the directory tree under which the server's
    # configuration, error, and log files are kept.
    #
    # NOTE!  If you intend to place this on an NFS (or otherwise network)
    # mounted filesystem then please read the Mutex documentation (available
    # at <URL:http://httpd.apache.org/docs/2.4/mod/core.html#mutex>);
    # you will save yourself a lot of trouble.
    #
    # Do NOT add a slash at the end of the directory path.
    #
    #ServerRoot "/etc/apache2"
    ServerName localhost
     
    #ExtendedStatus On
    #<Location /server-status>
    #     SetHandler server-status
    #     Order deny,allow
    #     Deny from all
    #     Allow from 192.168.0.13
    #</Location>
     
    #
    # The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
    #
    Mutex file:${APACHE_LOCK_DIR} default
     
    #
    # PidFile: The file in which the server should record its process
    # identification number when it starts.
    # This needs to be set in /etc/apache2/envvars
    #
    PidFile ${APACHE_PID_FILE}
     
    #
    # Timeout: The number of seconds before receives and sends time out.
    #
    Timeout 300
     
    #
    # KeepAlive: Whether or not to allow persistent connections (more than
    # one request per connection). Set to "Off" to deactivate.
    #
    KeepAlive On
     
    #
    # MaxKeepAliveRequests: The maximum number of requests to allow
    # during a persistent connection. Set to 0 to allow an unlimited amount.
    # We recommend you leave this number high, for maximum performance.
    #
    MaxKeepAliveRequests 100
     
    #
    # KeepAliveTimeout: Number of seconds to wait for the next request from the
    # same client on the same connection.
    #
    KeepAliveTimeout 5
     
     
    # These need to be set in /etc/apache2/envvars
    User ${APACHE_RUN_USER}
    Group ${APACHE_RUN_GROUP}
     
    #
    # HostnameLookups: Log the names of clients or just their IP addresses
    # e.g., www.apache.org (on) or 204.62.129.132 (off).
    # The default is off because it'd be overall better for the net if people
    # had to knowingly turn this feature on, since enabling it means that
    # each client request will result in AT LEAST one lookup request to the
    # nameserver.
    #
    HostnameLookups Off
     
    # ErrorLog: The location of the error log file.
    # If you do not specify an ErrorLog directive within a <VirtualHost>
    # container, error messages relating to that virtual host will be
    # logged here.  If you *do* define an error logfile for a <VirtualHost>
    # container, that host's errors will be logged there and not here.
    #
    ErrorLog ${APACHE_LOG_DIR}/error.log
     
    #
    # LogLevel: Control the severity of messages logged to the error_log.
    # Available values: trace8, ..., trace1, debug, info, notice, warn,
    # error, crit, alert, emerg.
    # It is also possible to configure the log level for particular modules, e.g.
    # "LogLevel info ssl:warn"
    #
    LogLevel warn
     
    # Include module configuration:
    IncludeOptional mods-enabled/*.load
    IncludeOptional mods-enabled/*.conf
     
    # Include list of ports to listen on
    Include ports.conf
     
     
    # Sets the default security model of the Apache2 HTTPD server. It does
    # not allow access to the root filesystem outside of /usr/share and /var/www.
    # The former is used by web applications packaged in Debian,
    # the latter may be used for local directories served by the web server. If
    # your system is serving content from a sub-directory in /srv you must allow
    # access here, or in any related virtual host.
    <Directory />
    	Options FollowSymLinks
    	AllowOverride None
    	Require all denied
    </Directory>
     
    <Directory /usr/share>
    	AllowOverride None
    	Require all granted
    </Directory>
     
    <Directory /var/www/>
    	# Options Indexes FollowSymLinks
    	# AllowOverride all
    	# Require all granted
     
    #Le 10-01 : 
    #----------
     
    	# ==>> pour éviter le warning de apache2ctl -S
            Options Indexes FollowSymLinks MultiViews 
     
    	# Options Indexes FollowSymLinks
    	AllowOverride all
    	Require all granted
    </Directory>
     
    #<Directory /srv/>
    #	Options Indexes FollowSymLinks
    #	AllowOverride None
    #	Require all granted
    #</Directory>
     
     
    # AccessFileName: The name of the file to look for in each directory
    # for additional configuration directives.  See also the AllowOverride
    # directive.
    #
    AccessFileName .htaccess
     
    #
    # The following lines prevent .htaccess and .htpasswd files from being
    # viewed by Web clients.
    #
    <FilesMatch "^\.ht">
    	Require all denied
    </FilesMatch>
     
     
    #
    # The following directives define some format nicknames for use with
    # a CustomLog directive.
    #
    # These deviate from the Common Log Format definitions in that they use %O
    # (the actual bytes sent including headers) instead of %b (the size of the
    # requested file), because the latter makes it impossible to detect partial
    # requests.
    #
    # Note that the use of %{X-Forwarded-For}i instead of %h is not recommended.
    # Use mod_remoteip instead.
    #
    LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
    LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %O" common
    LogFormat "%{Referer}i -> %U" referer
    LogFormat "%{User-agent}i" agent
     
    # Include of directories ignores editors' and dpkg's backup files,
    # see README.Debian for details.
     
    # Include generic snippets of statements
    IncludeOptional conf-enabled/*.conf
     
    # Include the virtual host configurations:
    IncludeOptional sites-enabled/*.conf
     
    # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
    Le résultat de netstat -p , pipé vers un fichier texte :

    https://debian-facile.org/paste-1F7D153463

  3. #63
    Membre régulier
    Homme Profil pro
    diagnoticien
    Inscrit en
    Novembre 2014
    Messages
    86
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 55
    Localisation : France, Bas Rhin (Alsace)

    Informations professionnelles :
    Activité : diagnoticien
    Secteur : Transports

    Informations forums :
    Inscription : Novembre 2014
    Messages : 86
    Points : 110
    Points
    110
    Par défaut
    Salut Bvsud
    Ce '2', devant eth0 : ça correspond à quoi ?
    J'ai pareil donc OK
    Avec la commande "ifconfig" et "netstat -tap" toujours ok? Apache présent?

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    # Fichier /etc/apache2/ports.conf
     
    # If you just change the port or add more ports here, you will likely also
    # have to change the VirtualHost statement in
    # /etc/apache2/sites-enabled/000-default.conf
     
    # Réactivé ceci :
    Listen 80
     
     
    Listen 0.0.0.0:80 <--pas sur que s'est bon d'avoir 2X un listen en port 80
     
    <IfModule ssl_module>
    	Listen 443
    </IfModule>
     
    <IfModule mod_gnutls.c>
    	Listen 443
    </IfModule>
     
    # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
    As tu bien configurer ton Apache pour owncloud?
    Je sais pas si s'est normal que ton Apache utilise les 2 fichier site-enables:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
             default server localhost (/etc/apache2/sites-enabled/000-default.conf:1)
             port 80 namevhost localhost (/etc/apache2/sites-enabled/000-default.conf:1)
             port 80 namevhost localhost (/etc/apache2/sites-enabled/owncloud.conf:1)

    Configure Apache Web Server¶

    On Debian, Ubuntu, and their derivatives, Apache installs with a useful configuration, so all you have to do is create a /etc/apache2/sites-available/owncloud.conf file with these lines in it, replacing the Directory and other file paths with your own file paths:

    Alias /owncloud "/var/www/owncloud/"

    <Directory /var/www/owncloud/>
    Options +FollowSymlinks
    AllowOverride All

    <IfModule mod_dav.c>
    Dav off
    </IfModule>

    SetEnv HOME /var/www/owncloud
    SetEnv HTTP_HOME /var/www/owncloud

    </Directory>

    Then create a symlink to /etc/apache2/sites-enabled:

    ln -s /etc/apache2/sites-available/owncloud.conf /etc/apache2/sites-enabled/owncloud.conf
    https://doc.owncloud.org/server/10.0...tallation.html

    Mais je testerai d'abord Apache par defaut sans owncloud , et de mettre un petit fichier index.php dans (var/www/htlm) pour test et voir si la page s'affiche dans le navigateur en local

  4. #64
    Membre régulier

    Profil pro
    Inscrit en
    Avril 2004
    Messages
    536
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2004
    Messages : 536
    Points : 121
    Points
    121
    Par défaut
    Commande : netstat -p : https://debian-facile.org/paste-8DFC8054EB

    Commande netstat -tap :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
     
    Connexions Internet actives (serveurs et établies)
    Proto Recv-Q Send-Q Adresse locale          Adresse distante        Etat        PID/Program name
    tcp        0      0 localhost:mysql         *:*                     LISTEN      882/mysqld      
    tcp        0      0 *:http                  *:*                     LISTEN      7048/apache2    
    tcp        0      0 *:webmin                *:*                     LISTEN      1257/perl       
    tcp        0      0 *:ssh                   *:*                     LISTEN      633/sshd        
    tcp        0      0 localhost:ipp           *:*                     LISTEN      628/cupsd       
    tcp        0      0 deb-srv.localnet:45474  imap.1und1.de:imaps     ESTABLISHED 8504/thunderbird
    tcp        0      0 deb-srv.localnet:47239  40.101.49.82:imaps      ESTABLISHED 8504/thunderbird
    tcp        0      0 deb-srv.localnet:47186  40.101.49.82:imaps      ESTABLISHED 8504/thunderbird
    tcp        0      0 deb-srv.localnet:46429  s7c.developpez.ne:https TIME_WAIT   -               
    tcp        0      0 deb-srv.localnet:46432  s7c.developpez.ne:https TIME_WAIT   -               
    tcp        0      0 deb-srv.localnet:47185  40.101.49.82:imaps      ESTABLISHED 8504/thunderbird
    tcp       12      0 deb-srv.localnet:38901  192.168.0.2:netbios-ssn ESTABLISHED 1533/gvfsd-smb-brow
    tcp        0      0 deb-srv.localnet:49875  a2-16-117-65.deplo:http ESTABLISHED 8587/firefox-esr
    tcp        1      0 localhost:48529         localhost:ipp           CLOSE_WAIT  629/cups-browsed
    tcp        0      0 deb-srv.localnet:49863  a2-16-117-65.deplo:http ESTABLISHED 8587/firefox-esr
    tcp        0      0 deb-srv.localnet:33666  par10s27-in-f10.1:https ESTABLISHED 8587/firefox-esr
    tcp        0      0 deb-srv.localnet:41116  par10s22-in-f238.:https ESTABLISHED 8587/firefox-esr
    tcp        0      0 deb-srv.localnet:46438  s7c.developpez.ne:https TIME_WAIT   -               
    tcp        0      0 deb-srv.localnet:56556  par10s21-in-f14.1e:http TIME_WAIT   -               
    tcp        0      0 deb-srv.localnet:56553  par10s21-in-f14.1e:http ESTABLISHED 8587/firefox-esr
    tcp        0      0 deb-srv.localnet:56555  par10s21-in-f14.1e:http TIME_WAIT   -               
    tcp        0      0 deb-srv.localnet:53157  104.27.181.181:https    ESTABLISHED 8504/thunderbird
    tcp        0      0 deb-srv.localnet:43737  compteur.developp:https TIME_WAIT   -               
    tcp        0      0 deb-srv.localnet:47240  40.101.49.82:imaps      ESTABLISHED 8504/thunderbird
    tcp        0      0 deb-srv.localnet:49036  par10s27-in-f8.1e:https ESTABLISHED 8587/firefox-esr
    tcp        0      0 deb-srv.localnet:57624  par10s21-in-f14.1:https ESTABLISHED 8587/firefox-esr
    tcp        0      0 deb-srv.localnet:32813  192.168.0.:microsoft-ds ESTABLISHED 1597/gvfsd-smb  
    tcp        0      0 deb-srv.localnet:45422  imap.1und1.de:imaps     ESTABLISHED 8504/thunderbird
    tcp        0      0 deb-srv.localnet:43736  ec2-52-39-210-199:https ESTABLISHED 8587/firefox-esr
    tcp        0      0 deb-srv.localnet:49877  a2-16-117-65.deplo:http TIME_WAIT   -               
    tcp        0      0 deb-srv.localnet:45434  imap.1und1.de:imaps     ESTABLISHED 8504/thunderbird
    tcp        0      0 deb-srv.localnet:56524  par10s21-in-f14.1e:http ESTABLISHED 8587/firefox-esr
    tcp       24      0 deb-srv.localnet:38796  192.168.0.2:netbios-ssn ESTABLISHED 1533/gvfsd-smb-brow
    tcp        0      0 deb-srv.localnet:35243  104.27.163.196:https    ESTABLISHED 8504/thunderbird
    tcp        0      0 deb-srv.localnet:56554  par10s21-in-f14.1e:http ESTABLISHED 8587/firefox-esr
    tcp       24      0 deb-srv.localnet:38798  192.168.0.2:netbios-ssn ESTABLISHED 1533/gvfsd-smb-brow
    tcp        0      0 deb-srv.localnet:46431  s7c.developpez.ne:https TIME_WAIT   -               
    tcp        0      0 deb-srv.localnet:56495  93.184.220.29:http      ESTABLISHED 8587/firefox-esr
    tcp        0      0 deb-srv.localnet:49876  a2-16-117-65.deplo:http ESTABLISHED 8587/firefox-esr
    tcp        0      0 deb-srv.localnet:37678  ec2-54-69-184-117:https ESTABLISHED 8587/firefox-esr
    tcp        0      0 deb-srv.localnet:44031  a88-221-83-154.dep:http ESTABLISHED 8587/firefox-esr
    tcp        0      0 deb-srv.localnet:41412  par10s27-in-f2.1e:https ESTABLISHED 8587/firefox-esr
    tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      633/sshd
    J'ai revu les choses aussi ds le routeur :














    Ds mes baux statiques... j'avais conservé l'ancien hostname d'hier !!

    Faut-il activer la DMZ ?

  5. #65
    Membre régulier
    Homme Profil pro
    diagnoticien
    Inscrit en
    Novembre 2014
    Messages
    86
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 55
    Localisation : France, Bas Rhin (Alsace)

    Informations professionnelles :
    Activité : diagnoticien
    Secteur : Transports

    Informations forums :
    Inscription : Novembre 2014
    Messages : 86
    Points : 110
    Points
    110
    Par défaut
    [QUOTE=bvsud;9907872]Commande : netstat -p : https://debian-facile.org/paste-8DFC8054EB

    Commande netstat -tap :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    Connexions Internet actives (serveurs et établies)
    Proto Recv-Q Send-Q Adresse locale          Adresse distante        Etat        PID/Program name
    tcp        0      0 localhost:mysql         *:*                     LISTEN      882/mysqld      
    tcp        0      0 *:http                  *:*                     LISTEN      7048/apache2    tout bon Apache bien démarrer:)
    tcp        0      0 *:webmin                *:*                     LISTEN      1257/perl       
    tcp        0      0 *:ssh                   *:*                     LISTEN      633/sshd
    La configuration de la freebox est OK

    Faut-il activer la DMZ ?
    Non pas besoin

    As-tu essayer la page test dans var/www/htlm?

  6. #66
    Membre régulier

    Profil pro
    Inscrit en
    Avril 2004
    Messages
    536
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2004
    Messages : 536
    Points : 121
    Points
    121
    Par défaut
    J'effectue les modifs que tu me conseilles.
    Ici : https://memo-linux.com/debian-8-jess...ion-pas-a-pas/
    la façon dont j'ai installé. SAUF QUE ... j'avais laissé Debian configurer lui-même le réseau, automatiquement, et il le fait en ipv6 ! Pourquoi ? J'en sais rien

    Je donne le retour

  7. #67
    Membre régulier
    Homme Profil pro
    diagnoticien
    Inscrit en
    Novembre 2014
    Messages
    86
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 55
    Localisation : France, Bas Rhin (Alsace)

    Informations professionnelles :
    Activité : diagnoticien
    Secteur : Transports

    Informations forums :
    Inscription : Novembre 2014
    Messages : 86
    Points : 110
    Points
    110
    Par défaut
    Je vais faire ce tuto pour voir ce que ça donne

  8. #68
    Membre régulier

    Profil pro
    Inscrit en
    Avril 2004
    Messages
    536
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2004
    Messages : 536
    Points : 121
    Points
    121
    Par défaut
    Sur le serveur, si je me logue à l'IP 192.168.0.13 , j'entre dans l'interface de owncloud.

    Les tests (après service apache2 restart) :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
     
    root@deb-srv2:~# netstat -tap
    Connexions Internet actives (serveurs et établies)
    Proto Recv-Q Send-Q Adresse locale          Adresse distante        Etat        PID/Program name
    tcp        0      0 localhost:mysql         *:*                     LISTEN      895/mysqld      
    tcp        0      0 *:http                  *:*                     LISTEN      2510/apache2    
    tcp        0      0 *:webmin                *:*                     LISTEN      1254/perl       
    tcp        0      0 *:ssh                   *:*                     LISTEN      678/sshd        
    tcp        0      0 localhost:ipp           *:*                     LISTEN      616/cupsd       
    tcp        1      0 localhost:39477         localhost:ipp           CLOSE_WAIT  661/cups-browsed
    tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      678/sshd
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    root@deb-srv2:~# netstat -ntlp | grep ":80 "
    tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      2510/apache2
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
     
    root@deb-srv2:~# ip a s eth0
    2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
        link/ether f4:6d:04:20:f9:90 brd ff:ff:ff:ff:ff:ff
        inet 192.168.0.13/24 brd 192.168.0.255 scope global eth0
           valid_lft forever preferred_lft forever

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    root@deb-srv2:~# apache2ctl -S
    VirtualHost configuration:
    *:80                   localhost (/etc/apache2/sites-enabled/owncloud.conf:1)  ==>> résultat de a2dissite 000-default.conf
    ServerRoot: "/etc/apache2"
    Main DocumentRoot: "/var/www/html"  ==>> Tjrs la même erreur
    Main ErrorLog: "/var/log/apache2/error.log"
    Mutex default: dir="/var/lock/apache2" mechanism=fcntl 
    Mutex mpm-accept: using_defaults
    Mutex watchdog-callback: using_defaults
    Mutex rewrite-map: using_defaults
    PidFile: "/var/run/apache2/apache2.pid"
    Define: DUMP_VHOSTS
    Define: DUMP_RUN_CFG
    User: name="www-data" id=33
    Group: name="www-data" id=33
    apache2ctl configtest : Syntax OK

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
     
    root@deb-srv2:~# apache2ctl status
    Apache Server Status for localhost (via 127.0.0.1)
     
    Server Version: Apache/2.4.10 (Debian)
    Server MPM: prefork
    Server Built: Sep 20 2017 04:37:43
     
    -------------------------------------------------------------------------------
     
    Current Time: Wednesday, 10-Jan-2018 22:01:14 CET
    Restart Time: Wednesday, 10-Jan-2018 21:58:54 CET
    Parent Server Config. Generation: 1
    Parent Server MPM Generation: 0
    Server uptime: 2 minutes 19 seconds
    Server load: 0.01 0.23 0.23
    Total accesses: 1 - Total Traffic: 1 kB
    CPU Usage: u0 s0 cu0 cs0
    .00719 requests/sec - 7 B/second - 1024 B/request
    1 requests currently being processed, 4 idle workers
     
    _W___...........................................................
    ................................................................
    ......................
     
    Scoreboard Key:
    "_" Waiting for Connection, "S" Starting up, "R" Reading Request,
    "W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
    "C" Closing connection, "L" Logging, "G" Gracefully finishing,
    "I" Idle cleanup of worker, "." Open slot with no current process
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
     
    root@deb-srv2:~# service apache2 status
    ● apache2.service - LSB: Apache2 web server
       Loaded: loaded (/etc/init.d/apache2)
      Drop-In: /lib/systemd/system/apache2.service.d
               └─forking.conf
       Active: active (running) since mer. 2018-01-10 21:58:55 CET; 2min 35s ago
      Process: 2471 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
      Process: 2496 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)
       CGroup: /system.slice/apache2.service
               ├─2510 /usr/sbin/apache2 -k start
               ├─2514 /usr/sbin/apache2 -k start
               ├─2515 /usr/sbin/apache2 -k start
               ├─2516 /usr/sbin/apache2 -k start
               ├─2517 /usr/sbin/apache2 -k start
               └─2518 /usr/sbin/apache2 -k start
     
    janv. 10 21:58:54 deb-srv2 systemd[1]: Starting LSB: Apache2 web server...
    janv. 10 21:58:55 deb-srv2 apache2[2496]: Starting web server: apache2.
    janv. 10 21:58:55 deb-srv2 systemd[1]: Started LSB: Apache2 web server.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    root@deb-srv2:~# apache2ctl --enable-v4-mapped
    httpd (pid 2510) already running
    C'est presque ça... mais ça ne marche pas. Au fait : j'ai rajouté le paquet build-essential

  9. #69
    Membre régulier
    Homme Profil pro
    diagnoticien
    Inscrit en
    Novembre 2014
    Messages
    86
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 55
    Localisation : France, Bas Rhin (Alsace)

    Informations professionnelles :
    Activité : diagnoticien
    Secteur : Transports

    Informations forums :
    Inscription : Novembre 2014
    Messages : 86
    Points : 110
    Points
    110
    Par défaut
    et en local du pc windows?

  10. #70
    Membre régulier

    Profil pro
    Inscrit en
    Avril 2004
    Messages
    536
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2004
    Messages : 536
    Points : 121
    Points
    121
    Par défaut
    Non plus. Aucun accès en WebDav. Que ce soit :
    192.168.0.13
    ou
    192.168.0.13/index.html

    Pourtant, le serveur répond au ping lancé sur lui depuis la bécane Windows.

    Le fichier /var/www/owncloud/status.php :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
     
    <?php
     
    try {
     
    	require_once __DIR__ . '/lib/base.php';
     
    	# show the version details based on config.php parameter, 
    	# but do not expose the servername in the public via url
    	$values = \OCP\Util::getStatusInfo(null,true);
     
    	if (OC::$CLI) {
    		print_r($values);
    	} else {
    		header('Access-Control-Allow-Origin: *');
    		header('Content-Type: application/json');
    		echo json_encode($values);
    	}
     
    } catch (Exception $ex) {
    	OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR);
    	\OCP\Util::writeLog('remote', $ex->getMessage(), \OCP\Util::FATAL);
    }
    Vu que c'est lui qui répond "délai d'attente dépassé"... Ca te parle ? Je n'ai jamais programmé en PHP.

    J'ai pensé à un truc, d'un coup. Ca n'a sans doute rien à voir, mais regarde mon ipconfig sous Windows :



    VMWare : il ne foutrait pas la panade ? Pourtant, il ne m'empêche pas de me connecter au serveur de l'assoss.

  11. #71
    Membre régulier
    Homme Profil pro
    diagnoticien
    Inscrit en
    Novembre 2014
    Messages
    86
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 55
    Localisation : France, Bas Rhin (Alsace)

    Informations professionnelles :
    Activité : diagnoticien
    Secteur : Transports

    Informations forums :
    Inscription : Novembre 2014
    Messages : 86
    Points : 110
    Points
    110
    Par défaut
    Citation Envoyé par bvsud Voir le message

    Vu que c'est lui qui répond "délai d'attente dépassé"... Ca te parle ? Je n'ai jamais programmé en PHP.
    S'est bien le client qui arrive pas a connecter sur ton Status.php

    As-tu crée le liens symbolique pour Apache?
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    ln -s /etc/apache2/sites-available/owncloud.conf /etc/apache2/sites-enabled/owncloud.conf
    et ajoute dans /etc/apache2/sites-available/owncloud.conf

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    Alias /owncloud "/var/www/owncloud/"
     
     
    Options +FollowSymlinks
    AllowOverride All
     
     
    Dav off
     
    SetEnv HOME /var/www/owncloud
    SetEnv HTTP_HOME /var/www/owncloud
    Satisfy Any
    puis un
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    service apache2 restart

  12. #72
    Membre régulier
    Homme Profil pro
    diagnoticien
    Inscrit en
    Novembre 2014
    Messages
    86
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 55
    Localisation : France, Bas Rhin (Alsace)

    Informations professionnelles :
    Activité : diagnoticien
    Secteur : Transports

    Informations forums :
    Inscription : Novembre 2014
    Messages : 86
    Points : 110
    Points
    110
    Par défaut
    J'ai pensé à un truc, d'un coup. Ca n'a sans doute rien à voir, mais regarde mon ipconfig sous Windows :



    VMWare : il ne foutrait pas la panade ? Pourtant, il ne m'empêche pas de me connecter au serveur de l'assoss.
    euh! mais que viens faire VMware sur ton pc Windows? lol
    pourtant a ce que j'ai compris tu n'as pas fais une installation virtuel avec VMware?

  13. #73
    Membre régulier

    Profil pro
    Inscrit en
    Avril 2004
    Messages
    536
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2004
    Messages : 536
    Points : 121
    Points
    121
    Par défaut
    Liens symboliques : oui.
    Je modifie le fichier owncloud.conf, et je reviens

    VMware ? Je m'en sers pour des MV. Surtout cette grosse daube de Win 10
    La bécane Linux (le serveur) est bel et bien une machine physique.

  14. #74
    Membre régulier

    Profil pro
    Inscrit en
    Avril 2004
    Messages
    536
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2004
    Messages : 536
    Points : 121
    Points
    121
    Par défaut
    Problème de syntaxe :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
     
    <VirtualHost *:80>
    	# The ServerName directive sets the request scheme, hostname and port that
    	# the server uses to identify itself. This is used when creating
    	# redirection URLs. In the context of virtual hosts, the ServerName
    	# specifies what hostname must appear in the request's Host: header to
    	# match this virtual host. For the default virtual host (this file) this
    	# value is not decisive as it is used as a last resort host regardless.
    	# However, you must set it for any further virtual host explicitly.
    	#ServerName www.example.com
     
    	ServerAdmin webmaster@localhost
    	DocumentRoot /var/www/owncloud
     
    	Alias /owncloud "/var/www/owncloud/"
    	Options +FollowSymlinks
    	AllowOverride All
    	Dav off
    	SetEnv HOME /var/www/owncloud
    	SetEnv HTTP_HOME /var/www/owncloud
    	Satisfy Any
     
    	# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
    	# error, crit, alert, emerg.
    	# It is also possible to configure the loglevel for particular
    	# modules, e.g.
    	#LogLevel info ssl:warn
     
    	ErrorLog ${APACHE_LOG_DIR}/error.log
    	CustomLog ${APACHE_LOG_DIR}/access.log combined
     
    	# For most configuration files from conf-available/, which are
    	# enabled or disabled at a global level, it is possible to
    	# include a line for only one particular virtual host. For example the
    	# following line enables the CGI configuration for this host only
    	# after it has been globally disabled with "a2disconf".
    	#Include conf-available/serve-cgi-bin.conf
    </VirtualHost>
     
    # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
    <Directory /var/www/html>
        AllowOverride all
    </Directory>
    Réponse d'Apache :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
     
    root@deb-srv2:~/Documents/Serveur-10# apache2ctl configtest
    AH00526: Syntax error on line 16 of /etc/apache2/sites-enabled/owncloud.conf:
    AllowOverride not allowed here
    Action 'configtest' failed.
    The Apache error log may have more information.
    Il doit falloir des balises ?
    J'ai tenté de l'insérer à la fin, mais même topo.

  15. #75
    Membre régulier
    Homme Profil pro
    diagnoticien
    Inscrit en
    Novembre 2014
    Messages
    86
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 55
    Localisation : France, Bas Rhin (Alsace)

    Informations professionnelles :
    Activité : diagnoticien
    Secteur : Transports

    Informations forums :
    Inscription : Novembre 2014
    Messages : 86
    Points : 110
    Points
    110
    Par défaut
    ça de dit que la ligne 16 n'est pas admise :

    Supprime la ligne AllowOverride All

  16. #76
    Membre régulier

    Profil pro
    Inscrit en
    Avril 2004
    Messages
    536
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2004
    Messages : 536
    Points : 121
    Points
    121
    Par défaut
    Réponse :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
     
    root@deb-srv2:~/Documents/Serveur-10# apache2ctl configtest
    AH00526: Syntax error on line 16 of /etc/apache2/sites-enabled/owncloud.conf:
    Invalid command 'Dav', perhaps misspelled or defined by a module not included in the server configuration
    Action 'configtest' failed.
    The Apache error log may have more information.
    Je supprime la ligne 16.

    Owncloud.conf ds son état actuel :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
     
    <VirtualHost *:80>
    	# The ServerName directive sets the request scheme, hostname and port that
    	# the server uses to identify itself. This is used when creating
    	# redirection URLs. In the context of virtual hosts, the ServerName
    	# specifies what hostname must appear in the request's Host: header to
    	# match this virtual host. For the default virtual host (this file) this
    	# value is not decisive as it is used as a last resort host regardless.
    	# However, you must set it for any further virtual host explicitly.
    	#ServerName www.example.com
     
    	ServerAdmin webmaster@localhost
    	DocumentRoot /var/www/owncloud
     
    	Alias /owncloud "/var/www/owncloud/"
    	Options +FollowSymlinks
    	SetEnv HOME /var/www/owncloud
    	SetEnv HTTP_HOME /var/www/owncloud
     
    	# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
    	# error, crit, alert, emerg.
    	# It is also possible to configure the loglevel for particular
    	# modules, e.g.
    	#LogLevel info ssl:warn
     
    	ErrorLog ${APACHE_LOG_DIR}/error.log
    	CustomLog ${APACHE_LOG_DIR}/access.log combined
     
    	# For most configuration files from conf-available/, which are
    	# enabled or disabled at a global level, it is possible to
    	# include a line for only one particular virtual host. For example the
    	# following line enables the CGI configuration for this host only
    	# after it has been globally disabled with "a2disconf".
    	#Include conf-available/serve-cgi-bin.conf
    </VirtualHost>
     
    # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
    <Directory /var/www/html>
        AllowOverride all
    </Directory>
    Même topo. Le client ne se connecte pas.
    Je sens que l'une des deux bécanes de mon bureau va se retrouver par la fenêtre

  17. #77
    Membre régulier
    Homme Profil pro
    diagnoticien
    Inscrit en
    Novembre 2014
    Messages
    86
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 55
    Localisation : France, Bas Rhin (Alsace)

    Informations professionnelles :
    Activité : diagnoticien
    Secteur : Transports

    Informations forums :
    Inscription : Novembre 2014
    Messages : 86
    Points : 110
    Points
    110
    Par défaut
    et comme ceci?
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    <VirtualHost *:80>
    	# The ServerName directive sets the request scheme, hostname and port that
    	# the server uses to identify itself. This is used when creating
    	# redirection URLs. In the context of virtual hosts, the ServerName
    	# specifies what hostname must appear in the request's Host: header to
    	# match this virtual host. For the default virtual host (this file) this
    	# value is not decisive as it is used as a last resort host regardless.
    	# However, you must set it for any further virtual host explicitly.
    	#ServerName www.example.com
     
    	ServerAdmin webmaster@localhost
    	DocumentRoot /var/www/owncloud
     
    	Alias /owncloud "/var/www/owncloud/"
    	SetEnv HOME /var/www/owncloud
    	SetEnv HTTP_HOME /var/www/owncloud
    	Satisfy Any
     
    	# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
    	# error, crit, alert, emerg.
    	# It is also possible to configure the loglevel for particular
    	# modules, e.g.
    	#LogLevel info ssl:warn
     
    	ErrorLog ${APACHE_LOG_DIR}/error.log
    	CustomLog ${APACHE_LOG_DIR}/access.log combined
     
    	# For most configuration files from conf-available/, which are
    	# enabled or disabled at a global level, it is possible to
    	# include a line for only one particular virtual host. For example the
    	# following line enables the CGI configuration for this host only
    	# after it has been globally disabled with "a2disconf".
    	#Include conf-available/serve-cgi-bin.conf
    </VirtualHost>
     
    # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
    <Directory /var/www/html>
        AllowOverride all
    </Directory>

  18. #78
    Membre régulier

    Profil pro
    Inscrit en
    Avril 2004
    Messages
    536
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2004
    Messages : 536
    Points : 121
    Points
    121
    Par défaut
    J'ai dû supprimer la ligne 17.
    Syntax OK... mais pas de connexion.

    owncloud.conf :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
     
    <VirtualHost *:80>
    	# The ServerName directive sets the request scheme, hostname and port that
    	# the server uses to identify itself. This is used when creating
    	# redirection URLs. In the context of virtual hosts, the ServerName
    	# specifies what hostname must appear in the request's Host: header to
    	# match this virtual host. For the default virtual host (this file) this
    	# value is not decisive as it is used as a last resort host regardless.
    	# However, you must set it for any further virtual host explicitly.
    	#ServerName www.example.com
     
    	ServerAdmin webmaster@localhost
    	DocumentRoot /var/www/owncloud
     
    	Alias /owncloud "/var/www/owncloud/"
    	SetEnv HOME /var/www/owncloud
    	SetEnv HTTP_HOME /var/www/owncloud
     
    	# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
    	# error, crit, alert, emerg.
    	# It is also possible to configure the loglevel for particular
    	# modules, e.g.
    	#LogLevel info ssl:warn
     
    	ErrorLog ${APACHE_LOG_DIR}/error.log
    	CustomLog ${APACHE_LOG_DIR}/access.log combined
     
    	# For most configuration files from conf-available/, which are
    	# enabled or disabled at a global level, it is possible to
    	# include a line for only one particular virtual host. For example the
    	# following line enables the CGI configuration for this host only
    	# after it has been globally disabled with "a2disconf".
    	#Include conf-available/serve-cgi-bin.conf
    </VirtualHost>
     
    # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
    <Directory /var/www/html>
        AllowOverride all
    </Directory>
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
     
    root@deb-srv2:~# netstat -tap
    Connexions Internet actives (serveurs et établies)
    Proto Recv-Q Send-Q Adresse locale          Adresse distante        Etat        PID/Program name
    tcp        0      0 localhost:mysql         *:*                     LISTEN      842/mysqld      
    tcp        0      0 *:http                  *:*                     LISTEN      2103/apache2    
    tcp        0      0 *:webmin                *:*                     LISTEN      1253/perl       
    tcp        0      0 *:ssh                   *:*                     LISTEN      681/sshd        
    tcp        0      0 localhost:ipp           *:*                     LISTEN      625/cupsd       
    tcp        0      0 deb-srv.localnet:57615  s7c.developpez.ne:https TIME_WAIT   -               
    tcp        0      0 deb-srv.localnet:39274  40.100.173.2:imaps      ESTABLISHED 1623/thunderbird
    tcp        0      0 deb-srv.localnet:57614  s7c.developpez.ne:https TIME_WAIT   -               
    tcp        0      0 deb-srv.localnet:56085  developpez.com:https    TIME_WAIT   -               
    tcp        0      0 deb-srv.localnet:39322  40.100.173.2:imaps      ESTABLISHED 1623/thunderbird
    tcp        0      0 deb-srv.localnet:57612  s7c.developpez.ne:https TIME_WAIT   -               
    tcp        1      0 localhost:33412         localhost:ipp           CLOSE_WAIT  627/cups-browsed
    tcp        0      0 deb-srv.localnet:42491  imap.1und1.de:imaps     ESTABLISHED 1623/thunderbird
    tcp        0      0 deb-srv.localnet:47858  altsysimg.develop:https TIME_WAIT   -               
    tcp        0      0 deb-srv.localnet:33753  par21s04-in-f8.1e:https ESTABLISHED 1708/firefox-esr
    tcp        0      0 deb-srv.localnet:46651  bdd.developpez.ne:https TIME_WAIT   -               
    tcp        0      0 deb-srv.localnet:56086  developpez.com:https    TIME_WAIT   -               
    tcp        0      0 deb-srv.localnet:57616  s7c.developpez.ne:https TIME_WAIT   -               
    tcp        0      0 deb-srv.localnet:56288  compteur.developp:https TIME_WAIT   -               
    tcp        0      0 deb-srv.localnet:42502  imap.1und1.de:imaps     ESTABLISHED 1623/thunderbird
    tcp        0      0 deb-srv.localnet:36692  par10s22-in-f234.:https ESTABLISHED 1708/firefox-esr
    tcp        0      0 deb-srv.localnet:39325  40.100.173.2:imaps      ESTABLISHED 1623/thunderbird
    tcp        0      0 deb-srv.localnet:39275  40.100.173.2:imaps      ESTABLISHED 1623/thunderbird
    tcp        0      0 deb-srv.localnet:57613  s7c.developpez.ne:https TIME_WAIT   -               
    tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      681/sshd

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
     
    root@deb-srv2:~# netstat -ntlp | grep ":80 "
    tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      2103/apache2
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    VirtualHost configuration:
    *:80                   localhost (/etc/apache2/sites-enabled/owncloud.conf:1)
    ServerRoot: "/etc/apache2"
    Main DocumentRoot: "/var/www/html"  ===>> Pourquoi ?
    Main ErrorLog: "/var/log/apache2/error.log"
    Mutex default: dir="/var/lock/apache2" mechanism=fcntl 
    Mutex mpm-accept: using_defaults
    Mutex watchdog-callback: using_defaults
    Mutex rewrite-map: using_defaults
    PidFile: "/var/run/apache2/apache2.pid"
    Define: DUMP_VHOSTS
    Define: DUMP_RUN_CFG
    User: name="www-data" id=33
    Group: name="www-data" id=33

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
     
    root@deb-srv2:~# apache2ctl status
    Apache Server Status for localhost (via 127.0.0.1)
     
    Server Version: Apache/2.4.10 (Debian)
    Server MPM: prefork
    Server Built: Sep 20 2017 04:37:43
     
    -------------------------------------------------------------------------------
     
    Current Time: Wednesday, 10-Jan-2018 23:29:20 CET
    Restart Time: Wednesday, 10-Jan-2018 23:26:14 CET
    Parent Server Config. Generation: 1
    Parent Server MPM Generation: 0
    Server uptime: 3 minutes 6 seconds
    Server load: 0.30 0.32 0.20
    Total accesses: 0 - Total Traffic: 0 kB
    CPU Usage: u0 s0 cu0 cs0
    0 requests/sec - 0 B/second -
    1 requests currently being processed, 4 idle workers
     
    W____...........................................................
    ................................................................
    ......................
     
    Scoreboard Key:
    "_" Waiting for Connection, "S" Starting up, "R" Reading Request,
    "W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
    "C" Closing connection, "L" Logging, "G" Gracefully finishing,
    "I" Idle cleanup of worker, "." Open slot with no current process
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
     
    root@deb-srv2:~# service apache2 status
    ● apache2.service - LSB: Apache2 web server
       Loaded: loaded (/etc/init.d/apache2)
      Drop-In: /lib/systemd/system/apache2.service.d
               └─forking.conf
       Active: active (running) since mer. 2018-01-10 23:26:15 CET; 3min 26s ago
      Process: 2024 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
      Process: 2089 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)
       CGroup: /system.slice/apache2.service
               ├─2103 /usr/sbin/apache2 -k start
               ├─2107 /usr/sbin/apache2 -k start
               ├─2108 /usr/sbin/apache2 -k start
               ├─2109 /usr/sbin/apache2 -k start
               ├─2110 /usr/sbin/apache2 -k start
               └─2111 /usr/sbin/apache2 -k start
     
    janv. 10 23:26:15 deb-srv2 apache2[2089]: Starting web server: apache2.
    janv. 10 23:26:15 deb-srv2 systemd[1]: Started LSB: Apache2 web server.
    Tous les voyants sont au vert, pourtant...
    Euh... Si on pouvait reprendre demain ? Je sens que j'ai du mal à réfléchir Vu l'heure, c'est un peu logique...

  19. #79
    Membre régulier
    Homme Profil pro
    diagnoticien
    Inscrit en
    Novembre 2014
    Messages
    86
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 55
    Localisation : France, Bas Rhin (Alsace)

    Informations professionnelles :
    Activité : diagnoticien
    Secteur : Transports

    Informations forums :
    Inscription : Novembre 2014
    Messages : 86
    Points : 110
    Points
    110
    Par défaut
    je sais pas si y a besoin d'avoir cela dans le fichier :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    <Directory /var/www/html>
        AllowOverride all
    </Directory>
    ceci pointe sur le fameux var/www/htlm
    demain je ferai la même installation pour voir ce qui ne vas pas

  20. #80
    Membre régulier

    Profil pro
    Inscrit en
    Avril 2004
    Messages
    536
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2004
    Messages : 536
    Points : 121
    Points
    121
    Par défaut
    Citation Envoyé par allan71 Voir le message
    je sais pas si y a besoin d'avoir cela dans le fichier :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    <Directory /var/www/html>
        AllowOverride all
    </Directory>
    ceci pointe sur le fameux var/www/htlm
    demain je ferai la même installation pour voir ce qui ne vas pas
    J'ai modifié comme suit : (puisque ça pointe sur un autre dossier que celui de owncloud) :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
     
    <VirtualHost *:80>
    	# The ServerName directive sets the request scheme, hostname and port that
    	# the server uses to identify itself. This is used when creating
    	# redirection URLs. In the context of virtual hosts, the ServerName
    	# specifies what hostname must appear in the request's Host: header to
    	# match this virtual host. For the default virtual host (this file) this
    	# value is not decisive as it is used as a last resort host regardless.
    	# However, you must set it for any further virtual host explicitly.
    	#ServerName www.example.com
     
    	ServerAdmin webmaster@localhost
    	DocumentRoot /var/www/owncloud
     
    	Alias /owncloud "/var/www/owncloud/"
    	SetEnv HOME /var/www/owncloud
    	SetEnv HTTP_HOME /var/www/owncloud
     
    	# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
    	# error, crit, alert, emerg.
    	# It is also possible to configure the loglevel for particular
    	# modules, e.g.
    	#LogLevel info ssl:warn
     
    	ErrorLog ${APACHE_LOG_DIR}/error.log
    	CustomLog ${APACHE_LOG_DIR}/access.log combined
     
    	# For most configuration files from conf-available/, which are
    	# enabled or disabled at a global level, it is possible to
    	# include a line for only one particular virtual host. For example the
    	# following line enables the CGI configuration for this host only
    	# after it has been globally disabled with "a2disconf".
    	#Include conf-available/serve-cgi-bin.conf
    </VirtualHost>
     
    # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
    <Directory /var/www/owncloud>
        AllowOverride all
    </Directory>

Discussions similaires

  1. Réponses: 13
    Dernier message: 04/01/2010, 18h26
  2. Réponses: 1
    Dernier message: 26/11/2006, 10h57
  3. Redirection de apache sur :80 vers iis sur :81
    Par lecter dans le forum Apache
    Réponses: 2
    Dernier message: 26/04/2006, 09h27
  4. IIS + Apache + mysql...pour ceux qui ont déjà installé
    Par ludophil dans le forum Autres Logiciels
    Réponses: 1
    Dernier message: 15/10/2005, 02h21

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo