Obsah fóra
PravidláRegistrovaťPrihlásenie




Odpovedať na tému [ Príspevkov: 13 ] 
AutorSpráva
Offline

Užívateľ
Užívateľ
Obrázok užívateľa

Registrovaný: 03.12.20
Prihlásený: 20.12.20
Príspevky: 5
Témy: 1
Príspevok NapísalOffline : 03.12.2020 8:59

Ahojte,
mam doma desktop LinuxMint na ktorom bezi webserver Apache+PHP+MySQL.
Ak skusim na serveri http://localhost/ zobrazi uvodnu stranku apache a na web viem ist ako http://localhost/xxxxx, nacita.

Ak skusam z LAN http://192.168.0.7 zobrazi uvodnu stranku, no adresu http://192.168.0.7/xxxxx nenacita

Porty 80 aj 443 mam otvorene.

Rad by som sa na tento web chcel dostat aj z LAN, resp. ak by to bolo mozne aj z internetu vyuzitim DDNS.
Skusal som uz rozne finty co som nasiel na webe. Ale asi robim nieco zle. Vie mi niekto poradit?

dak

Pato


Offline

Skúsený užívateľ
Skúsený užívateľ
Spristupnenie webstranky z LAN

Registrovaný: 19.03.07
Prihlásený: 26.03.24
Príspevky: 7076
Témy: 85
Bydlisko: BA
Príspevok NapísalOffline : 03.12.2020 11:23

Vies ze to nikto nevie ako vyzera tvoj qpache config (pripadne vsetko co je v conf.d) a teda ti to nevieme povedat kym nam to neukazes. Moja domienka je ze vhost ti smeruje na localhost:80 a preto ked zmenis host (na ip) tak ti to neukaze nic. Ale toto je vyslovene vestenie a moze tam byt este hocikolko dalsich problemov.







_________________
Desktop: CPU AMD R7 1700x @ 3.85GHz | Cooling be quiet! Dark Rock Pro 4 | MB ASRock X470 Taichi Ult. | RAM 4x8GB DDR4 G-SKILL TridentZ RGB 3000 CL16-16-16-36 | VGA Powercolor VEGA56 + Raijintek Morpheus II | SSD Crucial MX300 525GB | HDD Seagate Ironwolf 3TB 5900rpm | PSU CORSAIR RM750X | MONITOR AOC Q3279VWFD8 | MOUSE HyperX Pulsefire FPS + Razer eXactMat | HyperX Alloy FPS Brown | HyperX Cloud | ARCH x64 &
Notebook: DELL inspiron 7537 i7 4500U, 16GB RAM, nv750, FHD IPS,Crucial M4 128GB | ARCH x64 & Surface Go 8/128 &
Mobil: LG v40 ThinQ (2018) & SBC: Raspberry pi 0 | 3B+ & Headphones: Senheiser HD58X | AKG K551 + detachable cable mod | Linsoul TIN T2 | KZ SZN
Offline

Užívateľ
Užívateľ
Obrázok užívateľa

Registrovaný: 03.12.20
Prihlásený: 20.12.20
Príspevky: 5
Témy: 1
Príspevok Napísal autor témyOffline : 03.12.2020 11:51

ports.conf
Kód:
Listen 80
<IfModule ssl_module>
   Listen 443
</IfModule>
<IfModule mod_gnutls.c>
   Listen 443
</IfModule>


apache2.conf
Kód:
# 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"

#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#
#Mutex file:${APACHE_LOCK_DIR} default

#
# The directory where shm and other runtime files will be stored.
#

DefaultRuntimeDir ${APACHE_RUN_DIR}

#
# 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 /var/run/apache2/apache2.pid

#
# 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 None
   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


Offline

Skúsený užívateľ
Skúsený užívateľ
Spristupnenie webstranky z LAN

Registrovaný: 19.03.07
Prihlásený: 26.03.24
Príspevky: 7076
Témy: 85
Bydlisko: BA
Príspevok NapísalOffline : 03.12.2020 13:06

Dole mas este 2 foldre s configmi, sites-enabled ma asi zaujima najviac.







_________________
Desktop: CPU AMD R7 1700x @ 3.85GHz | Cooling be quiet! Dark Rock Pro 4 | MB ASRock X470 Taichi Ult. | RAM 4x8GB DDR4 G-SKILL TridentZ RGB 3000 CL16-16-16-36 | VGA Powercolor VEGA56 + Raijintek Morpheus II | SSD Crucial MX300 525GB | HDD Seagate Ironwolf 3TB 5900rpm | PSU CORSAIR RM750X | MONITOR AOC Q3279VWFD8 | MOUSE HyperX Pulsefire FPS + Razer eXactMat | HyperX Alloy FPS Brown | HyperX Cloud | ARCH x64 &
Notebook: DELL inspiron 7537 i7 4500U, 16GB RAM, nv750, FHD IPS,Crucial M4 128GB | ARCH x64 & Surface Go 8/128 &
Mobil: LG v40 ThinQ (2018) & SBC: Raspberry pi 0 | 3B+ & Headphones: Senheiser HD58X | AKG K551 + detachable cable mod | Linsoul TIN T2 | KZ SZN
Offline

Prevádzkovateľ fóra
Prevádzkovateľ fóra
Spristupnenie webstranky z LAN

Registrovaný: 01.05.05
Príspevky: 13343
Témy: 1494
Bydlisko: Bratislava
Príspevok NapísalOffline : 03.12.2020 13:23

Nemas firewall? Neblokuje ti on pristup z ineho zariadenia v sieti na tvoj komp? Apache vyzera byt ok, pokial nemas pri portoch definovane pre aku ip sa tyka dany port, tak sa pouzije pre vsetky sietove rozhrania co v pc su, takze v tom problem nie je. Skor tipujem na firewall, ktory blokne prichadzajucu poziadavku na port 80 z ineho zariadenia v sieti a preto ti to nefunguje.







_________________
Streacom DA2 | SilverStone Titanium SX800-LTI 800W | ASRock X299E-ITX/ac | Intel Core i9-9980XE & be quiet! Dark Rock TF | Kingston HyperX Impact 64 GB DDR4 2666 MHz | NVIDIA Titan RTX 24 GB | Intel SSD Optane 905P 480 GB NVMe U.2 & Intel SSD 750 1,2 TB NVMe U.2 & Intel SSD 660p 2 TB NVMe M.2 & Seagate BackUp Plus Portable 56 TB USB | 55" 4K OLED Dell Alienware AW5520QF & 24" LCD EIZO FlexScan EV2451 | Ergotron LX Wall Mount Keyboard Arm | Logitech Craft | Logitech G603 | Logitech F710 | Harman Kardon Sabre SB 35 & Sennheiser RS 175 | Microsoft Windows 7 Ultimate | APC Back-UPS ES 700 | Lenovo ThinkPad X250 | iPhone X 256 GB & Pitaka Aramid | SilverStone ML05B Milo | Corsair SF600 SFX 600W | ASRock X99E-ITX/ac | Intel Xeon E5-2683 v4 & NOCTUA NH-L12S | Kingston HyperX Savage 32 GB DDR4 2400 MHz | NVIDIA GeForce GT 710 1 GB | Intel SSD Optane Memory 32 GB NVMe M.2 & Intel SSD 730 240 GB SATA | Ubuntu Server
Offline

Skúsený užívateľ
Skúsený užívateľ
Spristupnenie webstranky z LAN

Registrovaný: 19.03.07
Prihlásený: 26.03.24
Príspevky: 7076
Témy: 85
Bydlisko: BA
Príspevok NapísalOffline : 03.12.2020 13:37

ak ma vo virtualhostoch napisane localhost:80 tak to problem bude.







_________________
Desktop: CPU AMD R7 1700x @ 3.85GHz | Cooling be quiet! Dark Rock Pro 4 | MB ASRock X470 Taichi Ult. | RAM 4x8GB DDR4 G-SKILL TridentZ RGB 3000 CL16-16-16-36 | VGA Powercolor VEGA56 + Raijintek Morpheus II | SSD Crucial MX300 525GB | HDD Seagate Ironwolf 3TB 5900rpm | PSU CORSAIR RM750X | MONITOR AOC Q3279VWFD8 | MOUSE HyperX Pulsefire FPS + Razer eXactMat | HyperX Alloy FPS Brown | HyperX Cloud | ARCH x64 &
Notebook: DELL inspiron 7537 i7 4500U, 16GB RAM, nv750, FHD IPS,Crucial M4 128GB | ARCH x64 & Surface Go 8/128 &
Mobil: LG v40 ThinQ (2018) & SBC: Raspberry pi 0 | 3B+ & Headphones: Senheiser HD58X | AKG K551 + detachable cable mod | Linsoul TIN T2 | KZ SZN
Offline

Prevádzkovateľ fóra
Prevádzkovateľ fóra
Spristupnenie webstranky z LAN

Registrovaný: 01.05.05
Príspevky: 13343
Témy: 1494
Bydlisko: Bratislava
Príspevok NapísalOffline : 03.12.2020 14:14

Lenze o virtualhostoch nepise nic, nepredpokladam ze vie na co to vobec je inac by neriesil tak trivialnu vec ako spojazdnit webserver v sieti predpokladam, ja to aj tak skor tipujem na firewall, lebo ak by aj mal vytvorene virtualhosty, tak bezny sietovy interface by zobrazil nieco aj po zadani ip adresy, len by zobrazil obsah z /var/www ktory ma v conf definovany. Virtualhosty neprepisu nastavenia otvorenych portov, bude to len doplnok k tomu co uz nastavene v nich ma pokial sa nepletiem.







_________________
Streacom DA2 | SilverStone Titanium SX800-LTI 800W | ASRock X299E-ITX/ac | Intel Core i9-9980XE & be quiet! Dark Rock TF | Kingston HyperX Impact 64 GB DDR4 2666 MHz | NVIDIA Titan RTX 24 GB | Intel SSD Optane 905P 480 GB NVMe U.2 & Intel SSD 750 1,2 TB NVMe U.2 & Intel SSD 660p 2 TB NVMe M.2 & Seagate BackUp Plus Portable 56 TB USB | 55" 4K OLED Dell Alienware AW5520QF & 24" LCD EIZO FlexScan EV2451 | Ergotron LX Wall Mount Keyboard Arm | Logitech Craft | Logitech G603 | Logitech F710 | Harman Kardon Sabre SB 35 & Sennheiser RS 175 | Microsoft Windows 7 Ultimate | APC Back-UPS ES 700 | Lenovo ThinkPad X250 | iPhone X 256 GB & Pitaka Aramid | SilverStone ML05B Milo | Corsair SF600 SFX 600W | ASRock X99E-ITX/ac | Intel Xeon E5-2683 v4 & NOCTUA NH-L12S | Kingston HyperX Savage 32 GB DDR4 2400 MHz | NVIDIA GeForce GT 710 1 GB | Intel SSD Optane Memory 32 GB NVMe M.2 & Intel SSD 730 240 GB SATA | Ubuntu Server
Offline

Užívateľ
Užívateľ
Obrázok užívateľa

Registrovaný: 03.12.20
Prihlásený: 20.12.20
Príspevky: 5
Témy: 1
Príspevok Napísal autor témyOffline : 03.12.2020 14:22

000-default.conf
Kód:
<<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/html/

   # 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>


security.conf
Kód:
#
# Disable access to the entire file system except for the directories that
# are explicitly allowed later.
#
# This currently breaks the configurations that come with some web application
# Debian packages.
#
#<Directory />
#   AllowOverride None
#   Require all denied
#</Directory>


# Changing the following options will not really affect the security of the
# server, but might make attacks slightly more difficult in some cases.

#
# ServerTokens
# This directive configures what you return as the Server HTTP response
# Header. The default is 'Full' which sends information about the OS-Type
# and compiled in modules.
# Set to one of:  Full | OS | Minimal | Minor | Major | Prod
# where Full conveys the most information, and Prod the least.
#ServerTokens Minimal
ServerTokens OS
#ServerTokens Full

#
# Optionally add a line containing the server version and virtual host
# name to server-generated pages (internal error documents, FTP directory
# listings, mod_status and mod_info output etc., but not CGI generated
# documents or custom error documents).
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
# Set to one of:  On | Off | EMail
#ServerSignature Off
ServerSignature On

#
# Allow TRACE method
#
# Set to "extended" to also reflect the request body (only for testing and
# diagnostic purposes).
#
# Set to one of:  On | Off | extended
TraceEnable Off
#TraceEnable On

#
# Forbid access to version control directories
#
# If you use version control systems in your document root, you should
# probably deny access to their directories. For example, for subversion:
#
#<DirectoryMatch "/\.svn">
#   Require all denied
#</DirectoryMatch>

#
# Setting this header will prevent MSIE from interpreting files as something
# else than declared by the content type in the HTTP headers.
# Requires mod_headers to be enabled.
#
#Header set X-Content-Type-Options: "nosniff"

#
# Setting this header will prevent other sites from embedding pages from this
# site as frames. This defends against clickjacking attacks.
# Requires mod_headers to be enabled.
#
#Header set X-Frame-Options: "sameorigin"


ufw status
Kód:
Apache                     ALLOW       Anywhere                 
10000                      ALLOW       Anywhere                 
Apache Full                ALLOW       Anywhere                 
443                        ALLOW       Anywhere                 
Apache (v6)                ALLOW       Anywhere (v6)             
10000 (v6)                 ALLOW       Anywhere (v6)             
Apache Full (v6)           ALLOW       Anywhere (v6)             
443 (v6)                   ALLOW       Anywhere (v6)   


// Spojený príspevok 03.12.2020 14:25

JanoF píše:
Lenze o virtualhostoch nepise nic, nepredpokladam ze vie na co to vobec je inac by neriesil tak trivialnu vec ako spojazdnit webserver v sieti predpokladam, ja to aj tak skor tipujem na firewall, lebo ak by aj mal vytvorene virtualhosty, tak bezny sietovy interface by zobrazil nieco aj po zadani ip adresy, len by zobrazil obsah z /var/www ktory ma v conf definovany. Virtualhosty neprepisu nastavenia otvorenych portov, bude to len doplnok k tomu co uz nastavene v nich ma pokial sa nepletiem.


mas pravdu. v sietovych veciach nie som uplne doma... viem len jednoduche veci ako fw porty, nastavit nejake veci a pod. tato pre mna trivialna nie je


Offline

Skúsený užívateľ
Skúsený užívateľ
Spristupnenie webstranky z LAN

Registrovaný: 19.03.07
Prihlásený: 26.03.24
Príspevky: 7076
Témy: 85
Bydlisko: BA
Príspevok NapísalOffline : 03.12.2020 14:27

Su na zaciatku toho 000-default 2x "<" ? To by nemalo. Inak to vyzera ok.

// Spojený príspevok Štv 03.12.20 14:37

Dalej je asi na mieste pozriet logy. Co ti vyhodi
Kód:
journalctl -u apache2
(alebo miesto "apache2" "httpd" pripadne len "apache" alebo akokolvek sa vola ta sluzba)

Ak toto nefunguje tak tie logy by mali byt najditelne vo /var/log/apache2 (alebo akokolvek sa u teba vola ta sluzba)







_________________
Desktop: CPU AMD R7 1700x @ 3.85GHz | Cooling be quiet! Dark Rock Pro 4 | MB ASRock X470 Taichi Ult. | RAM 4x8GB DDR4 G-SKILL TridentZ RGB 3000 CL16-16-16-36 | VGA Powercolor VEGA56 + Raijintek Morpheus II | SSD Crucial MX300 525GB | HDD Seagate Ironwolf 3TB 5900rpm | PSU CORSAIR RM750X | MONITOR AOC Q3279VWFD8 | MOUSE HyperX Pulsefire FPS + Razer eXactMat | HyperX Alloy FPS Brown | HyperX Cloud | ARCH x64 &
Notebook: DELL inspiron 7537 i7 4500U, 16GB RAM, nv750, FHD IPS,Crucial M4 128GB | ARCH x64 & Surface Go 8/128 &
Mobil: LG v40 ThinQ (2018) & SBC: Raspberry pi 0 | 3B+ & Headphones: Senheiser HD58X | AKG K551 + detachable cable mod | Linsoul TIN T2 | KZ SZN
Offline

Užívateľ
Užívateľ
Obrázok užívateľa

Registrovaný: 03.12.20
Prihlásený: 20.12.20
Príspevky: 5
Témy: 1
Príspevok Napísal autor témyOffline : 03.12.2020 14:45

Kód:
dec 03 07:22:39 AMD64 systemd[1]: Stopped The Apache HTTP Server.
dec 03 07:22:43 AMD64 systemd[1]: Starting The Apache HTTP Server...
dec 03 07:22:43 AMD64 apachectl[66946]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive >
dec 03 07:22:43 AMD64 systemd[1]: Started The Apache HTTP Server.
dec 03 08:10:35 AMD64 systemd[1]: apache2.service: Main process exited, code=exited, status=1/FAILURE
dec 03 08:10:35 AMD64 systemd[1]: apache2.service: Failed with result 'exit-code'.
dec 03 08:12:15 AMD64 systemd[1]: Starting The Apache HTTP Server...
dec 03 08:12:15 AMD64 apachectl[100243]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive>
dec 03 08:12:15 AMD64 systemd[1]: Started The Apache HTTP Server.
dec 03 08:15:48 AMD64 systemd[1]: Stopping The Apache HTTP Server...
dec 03 08:15:49 AMD64 apachectl[102505]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive>
dec 03 08:15:50 AMD64 systemd[1]: apache2.service: Succeeded.
dec 03 08:15:50 AMD64 systemd[1]: Stopped The Apache HTTP Server.
dec 03 08:15:50 AMD64 systemd[1]: Starting The Apache HTTP Server...
dec 03 08:15:50 AMD64 apachectl[102541]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive>
dec 03 08:15:50 AMD64 systemd[1]: Started The Apache HTTP Server.
dec 03 08:19:44 AMD64 systemd[1]: Stopping The Apache HTTP Server...
dec 03 08:19:44 AMD64 apachectl[105113]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive>
dec 03 08:19:44 AMD64 systemd[1]: apache2.service: Succeeded.
dec 03 08:19:44 AMD64 systemd[1]: Stopped The Apache HTTP Server.
dec 03 08:19:44 AMD64 systemd[1]: Starting The Apache HTTP Server...
dec 03 08:19:45 AMD64 apachectl[105133]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive>
dec 03 08:19:45 AMD64 systemd[1]: Started The Apache HTTP Server.


// Spojený príspevok 03.12.2020 14:46

void píše:
Su na zaciatku toho 000-default 2x "<" ? To by nemalo. Inak to vyzera ok.

// Spojený príspevok Štv 03.12.20 14:37

Dalej je asi na mieste pozriet logy. Co ti vyhodi
Kód:
journalctl -u apache2
(alebo miesto "apache2" "httpd" pripadne len "apache" alebo akokolvek sa vola ta sluzba)

Ak toto nefunguje tak tie logy by mali byt najditelne vo /var/log/apache2 (alebo akokolvek sa u teba vola ta sluzba)


tie zobaciky << su preklap

// Spojený príspevok 03.12.2020 14:47

ked to skusam cez mobil http://192.168.0.7/xxxxxx tak mi to premeni na https://localhost/xxxxxx


Offline

Prevádzkovateľ fóra
Prevádzkovateľ fóra
Spristupnenie webstranky z LAN

Registrovaný: 01.05.05
Príspevky: 13343
Témy: 1494
Bydlisko: Bratislava
Príspevok NapísalOffline : 03.12.2020 15:10

a co je xxxxxx? nejaky script? mas tam aj nejaky htaccess co ti meni domenu na localhost? lebo apache to sam od seba robit nebude, popripade ten samotny script? Vies chcelo by to trosku viac informacii, skus zobrazit nejaky odkaz na obrazok na mobile trebars, ze ci sa zobrazi a ak ano, tak potom ti prepisuje aplikacia co ti tam bezi asi ip na domenu ktoru si mozno zadal pri instalacii aplikacie a ak to bude tak, tak si budes musiet tym padom osetrit aplikaciu aby nedochadzalo k prepisu adresy, v tvom pripade ip v sieti co mas na localhost ktory si mozno pri instalacii niecoho, nevedno coho, co ti tam bezi na localhost mozno zadaval ako adresu pri spojazdnovani danej aplikacie, ale to len hadam.







_________________
Streacom DA2 | SilverStone Titanium SX800-LTI 800W | ASRock X299E-ITX/ac | Intel Core i9-9980XE & be quiet! Dark Rock TF | Kingston HyperX Impact 64 GB DDR4 2666 MHz | NVIDIA Titan RTX 24 GB | Intel SSD Optane 905P 480 GB NVMe U.2 & Intel SSD 750 1,2 TB NVMe U.2 & Intel SSD 660p 2 TB NVMe M.2 & Seagate BackUp Plus Portable 56 TB USB | 55" 4K OLED Dell Alienware AW5520QF & 24" LCD EIZO FlexScan EV2451 | Ergotron LX Wall Mount Keyboard Arm | Logitech Craft | Logitech G603 | Logitech F710 | Harman Kardon Sabre SB 35 & Sennheiser RS 175 | Microsoft Windows 7 Ultimate | APC Back-UPS ES 700 | Lenovo ThinkPad X250 | iPhone X 256 GB & Pitaka Aramid | SilverStone ML05B Milo | Corsair SF600 SFX 600W | ASRock X99E-ITX/ac | Intel Xeon E5-2683 v4 & NOCTUA NH-L12S | Kingston HyperX Savage 32 GB DDR4 2400 MHz | NVIDIA GeForce GT 710 1 GB | Intel SSD Optane Memory 32 GB NVMe M.2 & Intel SSD 730 240 GB SATA | Ubuntu Server
Offline

Skúsený užívateľ
Skúsený užívateľ
Spristupnenie webstranky z LAN

Registrovaný: 19.03.07
Prihlásený: 26.03.24
Príspevky: 7076
Témy: 85
Bydlisko: BA
Príspevok NapísalOffline : 03.12.2020 15:10

To vyzera ze mas napevno presmerovanie z akehokolvek volania na :80 -> localhost:443 co nemoze fungovat lebo localhost na telefone je nieco ine ako na pocitaci.
Daj este aj obsah conf.d/*
A predsa len aj /var/log/{apache2,httpd}/access_log a error_log







_________________
Desktop: CPU AMD R7 1700x @ 3.85GHz | Cooling be quiet! Dark Rock Pro 4 | MB ASRock X470 Taichi Ult. | RAM 4x8GB DDR4 G-SKILL TridentZ RGB 3000 CL16-16-16-36 | VGA Powercolor VEGA56 + Raijintek Morpheus II | SSD Crucial MX300 525GB | HDD Seagate Ironwolf 3TB 5900rpm | PSU CORSAIR RM750X | MONITOR AOC Q3279VWFD8 | MOUSE HyperX Pulsefire FPS + Razer eXactMat | HyperX Alloy FPS Brown | HyperX Cloud | ARCH x64 &
Notebook: DELL inspiron 7537 i7 4500U, 16GB RAM, nv750, FHD IPS,Crucial M4 128GB | ARCH x64 & Surface Go 8/128 &
Mobil: LG v40 ThinQ (2018) & SBC: Raspberry pi 0 | 3B+ & Headphones: Senheiser HD58X | AKG K551 + detachable cable mod | Linsoul TIN T2 | KZ SZN
Offline

Užívateľ
Užívateľ
Obrázok užívateľa

Registrovaný: 03.12.20
Prihlásený: 20.12.20
Príspevky: 5
Témy: 1
Príspevok Napísal autor témyOffline : 03.12.2020 17:19

adresu http://192.168.0.7/webtrees/ zabudol som napisat ze to je nazov priecinka v ktorom je index.php. asi pred 10 rokmi mi to fungovalo. je to len pre rodinne ucely, zatial testovanie

cast z access.log
Kód:
192.168.0.5 - - [03/Dec/2020:16:43:26 +0100] "GET /webtrees/ HTTP/1.1" 302 646 "-" "Mozilla/5.0 (Android 7.0; Mobile; rv:83.0) Gecko/83.0 Firefox/83.0"
127.0.0.1 - - [03/Dec/2020:16:44:11 +0100] "GET /webtrees/ HTTP/1.1" 302 424 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0"
127.0.0.1 - - [03/Dec/2020:16:44:11 +0100] "GET /webtrees/index.php?route=%2Fwebtrees%2F HTTP/1.1" 302 455 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0"
127.0.0.1 - - [03/Dec/2020:16:44:11 +0100] "GET /webtrees/index.php?route=%2Fwebtrees%2Fadmin%2Ftrees%2Fmanage%2Fstrecno HTTP/1.1" 200 4361 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0"
127.0.0.1 - - [03/Dec/2020:16:44:12 +0100] "POST /webtrees/index.php?route=%2Fwebtrees%2Ftree%2Fstrecno%2Fload HTTP/1.1" 200 748 "http://localhost/webtrees/index.php?route=%2Fwebtrees%2Fadmin%2Ftrees%2Fmanage%2Fstrecno" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0"


cast z error.log, skusal som tam spravit https a ine...
Kód:
[Thu Dec 03 08:15:50.671979 2020] [ssl:warn] [pid 102541] AH01916: Init: (127.0.1.1:443) You configured HTTP(80) on the standard HTTPS(443) port!
[Thu Dec 03 08:15:51.211690 2020] [ssl:warn] [pid 102550] AH01916: Init: (127.0.1.1:443) You configured HTTP(80) on the standard HTTPS(443) port!
[Thu Dec 03 08:15:51.252770 2020] [mpm_prefork:notice] [pid 102550] AH00163: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
[Thu Dec 03 08:15:51.255896 2020] [core:notice] [pid 102550] AH00094: Command line: '/usr/sbin/apache2'
[Thu Dec 03 08:19:44.932465 2020] [mpm_prefork:notice] [pid 102550] AH00169: caught SIGTERM, shutting down
[Thu Dec 03 08:19:45.196120 2020] [ssl:warn] [pid 105133] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Thu Dec 03 08:19:45.196302 2020] [ssl:warn] [pid 105133] AH01916: Init: (127.0.1.1:443) You configured HTTP(80) on the standard HTTPS(443) port!
[Thu Dec 03 08:19:45.337136 2020] [ssl:warn] [pid 105147] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Thu Dec 03 08:19:45.341818 2020] [ssl:warn] [pid 105147] AH01916: Init: (127.0.1.1:443) You configured HTTP(80) on the standard HTTPS(443) port!
[Thu Dec 03 08:19:45.376642 2020] [mpm_prefork:notice] [pid 105147] AH00163: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
[Thu Dec 03 08:19:45.376714 2020] [core:notice] [pid 105147] AH00094: Command line: '/usr/sbin/apache2'
[Thu Dec 03 08:24:38.060376 2020] [mpm_prefork:notice] [pid 105147] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Thu Dec 03 08:24:39.561888 2020] [ssl:warn] [pid 105147] AH01916: Init: (127.0.1.1:443) You configured HTTP(80) on the standard HTTPS(443) port!
[Thu Dec 03 08:24:39.567722 2020] [mpm_prefork:notice] [pid 105147] AH00163: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
[Thu Dec 03 08:24:39.567781 2020] [core:notice] [pid 105147] AH00094: Command line: '/usr/sbin/apache2'
[Thu Dec 03 11:51:59.500591 2020] [mpm_prefork:notice] [pid 105147] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Thu Dec 03 11:52:05.373809 2020] [ssl:warn] [pid 105147] AH01916: Init: (127.0.1.1:443) You configured HTTP(80) on the standard HTTPS(443) port!
[Thu Dec 03 11:52:05.374130 2020] [mpm_prefork:notice] [pid 105147] AH00163: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
[Thu Dec 03 11:52:05.374190 2020] [core:notice] [pid 105147] AH00094: Command line: '/usr/sbin/apache2'


conf.d je toto? /etc/apache2/conf-enabled
Kód:
charset.conf  javascript-common.conf  localized-error-pages.conf  other-vhosts-access-log.conf   security.conf  serve-cgi-bin.conf


Odpovedať na tému [ Príspevkov: 13 ] 


Podobné témy

 Témy  Odpovede  Zobrazenia  Posledný príspevok 
V tomto fóre nie sú ďalšie neprečítané témy. Spristupnenie NTFS disku na tučniaka UBUNTU

v Operačné systémy Unix a Linux

5

1295

28.10.2006 12:13

cinan Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Spristupnenie NTFS diskov v suse 10.1

v Operačné systémy Unix a Linux

27

1859

26.09.2006 20:21

Rixx Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Tvorba webstránky

v HTML, XHTML, XML, CSS

15

638

03.03.2014 22:25

Kamahl Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Kritika webstránky

v Webdesign

4

755

11.08.2011 19:15

Bajzik Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Prekopirovanie obsahu webstranky

v JavaScript, VBScript, Ajax

12

657

25.08.2009 21:38

awtt Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Kritika mojej novej webstránky

v Webdesign

4

554

22.01.2013 15:54

newmi Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Obnova Webstránky Z dneška

v Služby a webstránky

2

395

12.01.2016 17:04

miroslav13 Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Odosielanie mailov z webstranky

v PHP, ASP

2

305

13.05.2013 14:32

JanoF Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Hodnotenie dizajnu novej webstránky

v Webdesign

2

409

04.04.2013 11:28

IntelSK Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Reklama webstránky na googli

v Ostatné

4

368

08.09.2012 18:01

patrice Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. simulacia webstranky v lokalnej sieti

v Ostatné

10

748

18.11.2009 20:08

Tominator Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Zalozenie webstranky zadarmo na freehostingu

v Služby a webstránky

0

90

25.12.2023 14:28

T.C.B.E.E Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. zgrabovanie webstranky do img suboru

v PHP, ASP

6

707

19.06.2008 20:24

zero0x Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Webdesigner na vyvoj webstranky - dlhodoba spolupraca

v Ponuka práce

0

564

21.07.2012 23:26

shuter Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Certifikované webstránky versus NET 2.0

v Sieťové a internetové programy

0

445

17.04.2008 22:05

Anamorphy Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Hľadá sa - člen do tímu - webstránky

v Ponuka práce

2

1182

19.10.2008 22:52

walther Zobrazenie posledných príspevkov


Nemôžete zakladať nové témy v tomto fóre
Nemôžete odpovedať na témy v tomto fóre
Nemôžete upravovať svoje príspevky v tomto fóre
Nemôžete mazať svoje príspevky v tomto fóre

Skočiť na:  

Powered by phpBB Jarvis © 2005 - 2024 PCforum, webhosting by WebSupport, secured by GeoTrust, edited by JanoF
Ako väčšina webových stránok aj my používame cookies. Zotrvaním na webovej stránke súhlasíte, že ich môžeme používať.
Všeobecné podmienky, spracovanie osobných údajov a pravidlá fóra